Skip to content

Use rspec-rails main when testing against Rails main - #36

Merged
tricknotes merged 1 commit into
mainfrom
use-rspec-rails-main
Sep 3, 2026
Merged

Use rspec-rails main when testing against Rails main#36
tricknotes merged 1 commit into
mainfrom
use-rspec-rails-main

Conversation

@tricknotes

@tricknotes tricknotes commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

CI's Rails main job fails while loading the feature specs with FrozenError: can't modify frozen Hash (build (3.4, main) on the latest run): Rails main started freezing internals that the released rspec-rails still mutates.

The fixes (e.g. rspec/rspec-rails#2915) are merged on rspec-rails main but not yet released, so the Gemfile now points the test dependency at rspec-rails main — only when RAILS_VERSION=main, following the existing switch for the rails constraint. Released Rails versions keep the released rspec-rails, so the rest of the matrix is unaffected.

Verification

  • RAILS_VERSION=main bundle lock resolves, picking up rspec-rails 8.1.0.pre from main against rails main
  • The remaining matrix entries resolve unchanged (the else branch is identical to the previous declaration)
  • Please rely on the experimental build (3.4, main) job on this PR for the actual suite run

🤖 Generated with Claude Code

The suite fails to load under Rails main with a FrozenError, because rspec-rails mutates internals that Rails main now freezes.
The fixes (e.g. rspec/rspec-rails#2915) are merged upstream but not yet released, so point the test dependency at rspec-rails main for the Rails main entry of the matrix.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tricknotes
tricknotes merged commit 7c7d7ce into main Sep 3, 2026
9 checks passed
@tricknotes
tricknotes deleted the use-rspec-rails-main branch September 3, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants