Skip to content

Update dependencies and fix minitest/mock require#136

Merged
saturnflyer merged 1 commit into
mainfrom
update-deps-ruby-4
Apr 6, 2026
Merged

Update dependencies and fix minitest/mock require#136
saturnflyer merged 1 commit into
mainfrom
update-deps-ruby-4

Conversation

@saturnflyer

Copy link
Copy Markdown
Member

Summary

  • bundle update bumps Rails to 8.1.3, minitest to 6.0.3, and assorted transitive gems.
  • Minitest 6 extracted Minitest::Mock into a standalone minitest-mock gem, and Rails 8.1 no longer pulls minitest into the bundle transitively. Under Ruby 3.4's bundled-gems guard, this made require "minitest/mock" in test/lib/middleware_test.rb fail with a LoadError (this is what broke CI on Bump activerecord from 8.0.2.1 to 8.1.0 #119).
  • Adding minitest and minitest-mock to the Gemfile restores the require path.
  • Workflow files are intentionally left alone in this PR — Ruby version bump will come separately.

Test plan

  • bundle exec rake test — all tests green locally

bundle update brings Rails to 8.1.3 and minitest to 6.0.3.
Minitest 6 extracted Minitest::Mock into its own gem, and Rails 8.1
no longer pulls minitest in transitively, so test/lib/middleware_test.rb
could no longer require "minitest/mock" under Ruby 3.4's bundled-gems
guard. Adding both gems to the Gemfile restores the require path.

Fixed: restore minitest/mock require after bundle update to minitest 6 and rails 8.1
Changed: bump bundled gem versions via bundle update
@saturnflyer
saturnflyer requested a review from a team as a code owner April 6, 2026 21:46
@saturnflyer
saturnflyer merged commit 90d6819 into main Apr 6, 2026
7 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