Bump mocha from 2.6.1 to 2.7.1
Bumps mocha from 2.6.1 to 2.7.1.
Changelog
Sourced from mocha's changelog.
2.7.1
External changes
- Deprecate
Configuration#stubbing_method_on_nil=(#694)- Indicate when parameter matcher logic is defined by block passed to
Expectation#with(#698, b30e4434)- Improve documentation for
Expectation#with, especially when it is passed a block (#698, #682, #606 & #681)2.7.0
External changes
- Fail fast if invocation matches never expectation (#679, #678, #490, #131 & #44) - thanks to
@ducmtran&@davidstosikfor reportingInternal changes
- Workaround for JRuby jar-dependencies issue (#690)
- Ruby v3.4 stacktrace uses single-quote vs backtick (#688 & #689) - thanks to Vít Ondruch
WARNING: This release fixes a very old bug
The bug relates to the use of
Expectation#neverin combination with other expectations on the same method.Please ensure you fix the relevant deprecation warnings when running against v2.6.1 before upgrading to v2.7.0.
Previously, the following test would have passed, but now it will fail with an unexpected invocation error on the
foo.barline.foo = mock('foo') foo.stubs(:bar) foo.expects(:bar).never foo.bar
Commits
cb0909e[skip ci] Update documentation for v2.7.1d6ba8b9Bump version to 2.7.1 & prepare for release4d4a027Merge pull request #698 from freerange/expectation-with-improvementsb30e443Indicate when matcher logic is defined by blockfed3387Add custom matcher example to Expectatation#with docs17a4856Improve docs for Expectation#with when passed block3ca865fDocument argument precedence for Expectation#with558d521Add docs for Expectation#with when passed block99f3f6bDocument Expectation#with called multiple timesc3b4b8eClarify docs for Expectation#with yieldparam- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)