-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rspec tests won't after upgrading from rails 7.1.2 to 7.1.3.2: can't modify frozen Array when requiring environment file #51784
Comments
You can clone rails locally, point your app to the local copy of rails via |
I'm confused. Are you upgrading to 7.1.3.2? Because going from 7.1.3.2 to 7.1.2 is a downgrade, not an upgrade. 7.1.3.2 is a security release which means 7.1.2 is vulnerable to the security issues we fixed in 7.1.3.2. |
No, I'm upgrading from |
Apparently it's linked to some routing modifications. Bisect gave me this commit: 0821d25 |
Try upgrading |
I don't think this applies to you @jdescelliers but I had identical symptoms when |
Steps to reproduce
I'm trying to update rails from version
7.1.3.2
to7.1.2
along with it's dependencies.The Gemfile is as follows:
To isolate the problem, I tried to do the following:
rspec-rails
and check if all tests run correctly by runningbundle update rspec-rails
: all tests run correctly without errorsbundle update rspec-rails
output:bundle update rails
Expected behavior
Actual behavior
rspec
wiith or without arguments now return this error:System configuration
Rails version: 7.1.3.2 upgraded to 7.1.2
OS: MacOS 14.4.1 on Apple Silicon (M1 chip)
-Bundler version: 2.4.10
Ruby version: 3.2.2
Anyone has an idea on what went wrong? As noted before, I tried updating only
rspec-rails
and all tests ran without issues, its the rails update that caused this error. I purposely only updated only rails to isolate the issue here.The text was updated successfully, but these errors were encountered: