Skip to content

Support minitest 6 where possible, pin < 6 elsewhere#265

Merged
skipkayhil merged 1 commit intorails:mainfrom
flavorjones:fix-ci-minitest
Apr 15, 2026
Merged

Support minitest 6 where possible, pin < 6 elsewhere#265
skipkayhil merged 1 commit intorails:mainfrom
flavorjones:fix-ci-minitest

Conversation

@flavorjones
Copy link
Copy Markdown
Member

@flavorjones flavorjones commented Apr 14, 2026

Summary

  • Minitest 6 extracted minitest/mock into a separate gem (minitest-mock), breaking require "minitest/mock" in tests
  • Rails 7.0, 7.1: pin minitest < 6 (these Rails versions don't constrain minitest themselves)
  • Rails 7.2: no pin needed (already pins minitest < 6 in its own gemspec, rails/rails@6ea60702)
  • Rails 8.0, 8.1, root Gemfile: use minitest 6 with the minitest-mock gem
  • Add Rails 8.1 to the CI matrix

Test plan

  • bin/test passes against all five Rails Gemfiles (7.0, 7.1, 7.2, 8.0, 8.1) across Ruby 3.2, 3.3, and 3.4

@flavorjones flavorjones changed the title Pin minitest < 6 to fix CI Pin minitest < 6 and add Rails 8.1 to CI Apr 14, 2026
Minitest 6 extracted minitest/mock into a separate gem (minitest-mock),
which breaks tests that require "minitest/mock".

- Rails 7.0, 7.1: pin minitest < 6 (these Rails versions don't
  constrain minitest themselves)
- Rails 7.2: already pins minitest < 6 in its own gemspec (rails/rails@6ea60702)
- Rails 8.0, 8.1, root Gemfile: use minitest 6 with minitest-mock gem
@flavorjones flavorjones changed the title Pin minitest < 6 and add Rails 8.1 to CI Support minitest 6 where possible, pin < 6 elsewhere Apr 15, 2026
@skipkayhil skipkayhil merged commit 67def02 into rails:main Apr 15, 2026
18 checks passed
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