Update dependencies and fix minitest/mock require#136
Merged
Conversation
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
brennacodes
approved these changes
Apr 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bundle updatebumps Rails to 8.1.3, minitest to 6.0.3, and assorted transitive gems.Minitest::Mockinto a standaloneminitest-mockgem, and Rails 8.1 no longer pullsminitestinto the bundle transitively. Under Ruby 3.4's bundled-gems guard, this maderequire "minitest/mock"intest/lib/middleware_test.rbfail with a LoadError (this is what broke CI on Bump activerecord from 8.0.2.1 to 8.1.0 #119).minitestandminitest-mockto the Gemfile restores the require path.Test plan
bundle exec rake test— all tests green locally