RuntimeError: can't modify frozen Array

Viewed 5276

I updated my Ruby on Rails app to Ruby on Rails 5.1.4. When I run my tests, every test returns the following error:

An error occurred while loading {path to specific spec file}
Failure/Error: require File.expand_path('../../config/environment', __FILE__)

RuntimeError:
  can't modify frozen Array
# ./config/environment.rb:6:in `<top (required)>'
# ./spec/rails_helper.rb:4:in `<top (required)>'

How can I fix that?

EDIT:

I was updating from 5.0.0.1 to 5.1.4.

0 Answers
Related