Skip to content

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Dec 22, 2025

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ mocha (2.8.2 → 3.0.1) · Repo · Changelog

Release Notes

3.0.1 (from changelog)

External changes

  • Fix Mocha/RSpec integration by reinstating argument default value for Hooks#mocha_setup (#768 & #769) - thanks to @mackuba for reporting.

3.0.0 (from changelog)

External changes

  • Improvements to docs for cardinality-related methods (#700)
  • Drop support for Ruby v2.1 (#628 & #695)
  • Improve gemspec description (#692 & #696)
  • Remove docs for use_test_unit_gem option (eaf0349)
  • Correct docs for MOCHA_OPTIONS "debug" value (69ef41c)
  • Use built-in Ruby debug option vs custom module (#714 & #715)
  • Enable strict keyword argument matching by default in Ruby >= v3 (#697 & #718)
  • Use Ruby v1.9 Hash syntax in Hash#mocha_inspect used in failure messages (#651 & #719)
  • Improve #mocha_inspect for empty keyword argument Hash (#588 & #720) - thanks to @herwinw for reporting
  • Improve error if Mockery.teardown called before Mockery.setup (#611, #646 & #721) - thanks to @riniculous for reporting
  • Freeze string literals (#722)
  • Allow keyword arguments to match an expectation expecting only positional arguments (#593 & #732) - thanks to @seandilda for reporting
  • Fix compatibility with Ruby 3.5 (#755) - thanks to @Earlopain
  • Add missing quotes to docs for Mocha::ParameterMatchers::Methods#equivalent_uri (#757) - thanks to @bensherman
  • Increment assertion count on never expected invocation (#763 & #764)
  • Remove deprecated ParameterMatchers::Base class; include ParameterMatchers::BaseMethods module instead (415ae76)
  • Remove deprecated ParameterMatcher methods now available in ParameterMatcher::Methods (8de4997)
  • Removed deprecated access to ParameterMatcher classes (6ea9e3f)

Internal changes

  • Add Expectation#thrice (#701) - thanks to @andrewn617
  • Add base64 to Gemfile for Ruby >= v3.3.0 to avoid warning (8c49314 & a76330d)
  • Include custom Gemfiles in Rubocop linting (04063f0)
  • Use ruby:3.4.0-rc1 vs ruby:3.4.0-preview2 in CI in preparation for the Ruby v3.4 release (b212740)
  • Add ostruct to Gemfile for Ruby >= v3.4.0 to avoid warning (2b05e09)
  • Add Ruby v3.4 to CI build matrix (#708)
  • Fix Ruby v3.4 warnings in ObjectInspectTest (#709 & #710)
  • Rubocop-related improvements (#702 & #705)
  • Consistently use development group in Gemfiles (#706 & #716)
  • Add missing requires for 'mocha/ruby_version' (7f99db6)
  • Convert ParameterMatchers::Base class -> module (#712 & #723)
  • Enable ExpectMatchingDefinition option on Naming/FileName cop (#726)
  • Remove duplicate DefaultReceiverTest (39d9995)
  • Improvements to keyword argument matching tests (#730)
  • Improvements to keyword argument matcher unit test (#731)
  • Remove support for running tests with Minitest < v5 (#727)
  • Remove workaround for JRuby jar-dependencies issue (#737)
  • Add benchmark to Gemfile to fix warning (#733 & #740) - thanks to @nitishr
  • Add documentation coverage check (#707, #743 & #745) - thanks to @nitishr
  • Fix Lint/LiteralAsCondition violation (#746) - thanks to @nitishr
  • Fix rdoc-related warning when running doc rake task (#741 & #747)
  • Fail fast in CI builds on any Ruby warnings (#729 & #741) - thanks to @nitishr
  • Add ObjectMethods#stubba_respond_to? and use instead of Object#respond_to? (#713, #742 & #750) - thanks to @nitishr
  • Rename #stubbee -> #stubba_object and #mock_owner -> #stubbee (#463 & #751) - thanks to @nitishr
  • Fix enable-frozen-string-literal in CI build (#752) - thanks to @nitishr
  • Various rubocop fixed (#754 & #756)
  • Fix Layout/EmptyLinesAfterModuleInclusion violations (3f68322)
  • Auto-correct Style/RedundantParentheses violations (0277a59)
  • Automatically retry failed CI builds (9bbdbc6)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added dependencies Pull requests that update a dependency file Technical Debt labels Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file Technical Debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant