Changelog
*Sourced from [mocha's changelog](https://github.com/freerange/mocha/blob/master/RELEASE.md).*
> ## 1.10.1
>
> * Ensure ObjectMethods & ClassMethods included when API extended (43778756)
> * Fix regression in `any_instance` stubbing of methods on object which has an implementation of `#respond_to?` that depends on the object's internal state - thanks to [@rafaelfranca](https://github.com/rafaelfranca) for reporting & [@nitishr](https://github.com/nitishr) for fixing ([#432](https://github-redirect.dependabot.com/freerange/mocha/issues/432), [#434](https://github-redirect.dependabot.com/freerange/mocha/issues/434), 469d4b17)
>
> ## 1.10.0
>
> * Improve deprecation warning when requiring 'mocha/setup' (388f44d7)
> * Add documentation for Cucumber integration (13ab797b)
> * Add documentation about an undocumented feature of `API#mock`, `API#stub` & `API#stub_everything` being changed (7ed2e4e7, d30c1717)
>
> ## 1.10.0.beta.1
>
> * Hide `ClassMethods#method_visibility` & `#method_exists?` methods to avoid clash with Rails ([#428](https://github-redirect.dependabot.com/freerange/mocha/issues/428))
>
> ## 1.10.0.alpha
>
> ### External changes
>
> * Remove dependency on metaclass gem ([#49](https://github-redirect.dependabot.com/freerange/mocha/issues/49), [#365](https://github-redirect.dependabot.com/freerange/mocha/issues/365))
> * Accept symbol (as well as a string) as mock/stub name - thanks to [@nitishr](https://github.com/nitishr) ([#347](https://github-redirect.dependabot.com/freerange/mocha/issues/347), [#353](https://github-redirect.dependabot.com/freerange/mocha/issues/353), [#377](https://github-redirect.dependabot.com/freerange/mocha/issues/377))
> * More realistic examples in documentation for `Expectation#yields` and `#multiple_yields` - thanks to [@nitishr](https://github.com/nitishr) ([#352](https://github-redirect.dependabot.com/freerange/mocha/issues/352), [#383](https://github-redirect.dependabot.com/freerange/mocha/issues/383))
> * Improve documentation for `Mock#responds_like` & `#responds_like_instance_of` - thanks to [@nitishr](https://github.com/nitishr) ([#337](https://github-redirect.dependabot.com/freerange/mocha/issues/337), [#384](https://github-redirect.dependabot.com/freerange/mocha/issues/384))
> * Make `Expectation#yields` & `Expectation#multiple_yields` fail when the caller of the stubbed method does not provide a block. This is a change to an undocumented aspect of the public API's behaviour. If this causes your tests to fail, then fix it by removing the unnecessary call to `Expectation#yields` or `Expectation#multiple_yields` - thanks to [@nitishr](https://github.com/nitishr) ([#382](https://github-redirect.dependabot.com/freerange/mocha/issues/382))
> * Document `MOCHA_OPTIONS` in README - thanks to [@nitishr](https://github.com/nitishr) ([#311](https://github-redirect.dependabot.com/freerange/mocha/issues/311), [#386](https://github-redirect.dependabot.com/freerange/mocha/issues/386))
> * Add documentation to explain how Mocha is intended to be used - thanks to [@nitishr](https://github.com/nitishr) ([#330](https://github-redirect.dependabot.com/freerange/mocha/issues/330), [#385](https://github-redirect.dependabot.com/freerange/mocha/issues/385))
> * Deprecation warning if integration using 'mocha/test_unit' or 'mocha/minitest' fails - thanks to [@nitishr](https://github.com/nitishr) ([#229](https://github-redirect.dependabot.com/freerange/mocha/issues/229), [#389](https://github-redirect.dependabot.com/freerange/mocha/issues/389), c6032d0b)
> * Require at least one specified sequence for `Expectation#in_sequence` - thanks to [@nitishr](https://github.com/nitishr) ([#79](https://github-redirect.dependabot.com/freerange/mocha/issues/79), [#396](https://github-redirect.dependabot.com/freerange/mocha/issues/396), 9020248a)
> * Make signatures of `Mock#unstub` & `ObjectMethods#unstub` consistent - thanks to [@nitishr](https://github.com/nitishr) ([#397](https://github-redirect.dependabot.com/freerange/mocha/issues/397), f04d437)
> * Deprecate requiring 'mocha/setup' (36adf880)
> * Optionally display matching invocations alongside expectations - thanks to [@nitishr](https://github.com/nitishr) ([#178](https://github-redirect.dependabot.com/freerange/mocha/issues/178), [#394](https://github-redirect.dependabot.com/freerange/mocha/issues/394), 00f0540, [#410](https://github-redirect.dependabot.com/freerange/mocha/issues/410))
> * Put deprecations into effect ([#400](https://github-redirect.dependabot.com/freerange/mocha/issues/400), [#418](https://github-redirect.dependabot.com/freerange/mocha/issues/418)):
> * Remove deprecated 'mocha_standalone.rb' & 'mocha/standalone.rb'
> * Fail fast if no test library loaded
> * Removed optional block for `Mocha::API#mock`, `#stub` & `#stub_everything`
> * Remove deprecated `ParameterMatchers#has_equivalent_query_string` method
> * Remove deprecated 'mocha/mini_test.rb'
> * Fix typo in docs for `Mocha::Configuration.prevent` (266ce71c)
> * New-style configuration (see documentation for `Mocha::Configuration`) ([#407](https://github-redirect.dependabot.com/freerange/mocha/issues/407), [#421](https://github-redirect.dependabot.com/freerange/mocha/issues/421))
> * Deprecate support for Ruby versions earlier than v1.9 ([#325](https://github-redirect.dependabot.com/freerange/mocha/issues/325), c5f8496d)
> * Deprecate support for versions of test-unit & minitest which need monkey-patching (a34e1a88)
> * Deprecate old-style Rails plugin ([#403](https://github-redirect.dependabot.com/freerange/mocha/issues/403), 2df77134)
> * Documentation fixes & improvements which also fix YARD warnings (472d5416, a2c0d64a)
>
> ### Internal changes
>
> * Pin minitest to v5.11.3 for Ruby v1.8.7 to fix build; minitest no longer supports Ruby v1.8.7 (4a0a580)
> * Upgrade JRuby to v9.2.8.0 in Travis CI builds (aa29b3f)
> * Only run rubocop for MRI Ruby versions & non-integration test builds (8f1c6af)
> * Reduce duplication in any instance method class - thanks to [@nitishr](https://github.com/nitishr) ([#378](https://github-redirect.dependabot.com/freerange/mocha/issues/378))
> ... (truncated)
Commits
- [`5bb2210`](https://github.com/freerange/mocha/commit/5bb2210a66d2e5e3f826d56a502466836c7491c6) [skip ci] Update documentation for v1.10.1 release
- [`f44776e`](https://github.com/freerange/mocha/commit/f44776e72b5e7dbe3c69ed309f0b35cff132adea) Bump version to 1.10.1 & prepare for release
- [`469d4b1`](https://github.com/freerange/mocha/commit/469d4b174f15075af0ca9427150d25017c908c0c) Reintroduce allow check removed in 948a0c2
- [`4377875`](https://github.com/freerange/mocha/commit/43778756170857b1274697c94c974bb1d5bf805b) Ensure ObjectMethods & ClassMethods included when API extended
- [`0b768ee`](https://github.com/freerange/mocha/commit/0b768ee932009b1bcca7a3fd7dda7603b7c23c24) [skip ci] Update documentation for v1.10.0 release
- [`059dafb`](https://github.com/freerange/mocha/commit/059dafb738980665dd2e179a8cf55da4890b2c01) Bump version to 1.10.0 & prepare for release
- [`d30c171`](https://github.com/freerange/mocha/commit/d30c1717134f8a631bcc531c3228d1b50d3f6670) Add docs for change to undocumented behaviour in API#mock, #stub, etc
- [`388f44d`](https://github.com/freerange/mocha/commit/388f44d778c2239b52ffe5c52ace253419f91bd3) Improve deprecation warning when requiring 'mocha/setup'
- [`13ab797`](https://github.com/freerange/mocha/commit/13ab797bcf6afd6c4d7d9f6a83bed8c8b9cc3b26) Add documentation for integration with Cucumber
- [`2359afc`](https://github.com/freerange/mocha/commit/2359afc123e0de558e9683a81a6a41bf20fd6877) [skip ci] Update documentation in preparation for 1.10.0.beta1 release
- Additional commits viewable in [compare view](https://github.com/freerange/mocha/compare/v1.9.0...v1.10.1)
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.
If all status checks pass Dependabot will automatically merge this pull request.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps mocha from 1.9.0 to 1.10.1.
Changelog
*Sourced from [mocha's changelog](https://github.com/freerange/mocha/blob/master/RELEASE.md).* > ## 1.10.1 > > * Ensure ObjectMethods & ClassMethods included when API extended (43778756) > * Fix regression in `any_instance` stubbing of methods on object which has an implementation of `#respond_to?` that depends on the object's internal state - thanks to [@rafaelfranca](https://github.com/rafaelfranca) for reporting & [@nitishr](https://github.com/nitishr) for fixing ([#432](https://github-redirect.dependabot.com/freerange/mocha/issues/432), [#434](https://github-redirect.dependabot.com/freerange/mocha/issues/434), 469d4b17) > > ## 1.10.0 > > * Improve deprecation warning when requiring 'mocha/setup' (388f44d7) > * Add documentation for Cucumber integration (13ab797b) > * Add documentation about an undocumented feature of `API#mock`, `API#stub` & `API#stub_everything` being changed (7ed2e4e7, d30c1717) > > ## 1.10.0.beta.1 > > * Hide `ClassMethods#method_visibility` & `#method_exists?` methods to avoid clash with Rails ([#428](https://github-redirect.dependabot.com/freerange/mocha/issues/428)) > > ## 1.10.0.alpha > > ### External changes > > * Remove dependency on metaclass gem ([#49](https://github-redirect.dependabot.com/freerange/mocha/issues/49), [#365](https://github-redirect.dependabot.com/freerange/mocha/issues/365)) > * Accept symbol (as well as a string) as mock/stub name - thanks to [@nitishr](https://github.com/nitishr) ([#347](https://github-redirect.dependabot.com/freerange/mocha/issues/347), [#353](https://github-redirect.dependabot.com/freerange/mocha/issues/353), [#377](https://github-redirect.dependabot.com/freerange/mocha/issues/377)) > * More realistic examples in documentation for `Expectation#yields` and `#multiple_yields` - thanks to [@nitishr](https://github.com/nitishr) ([#352](https://github-redirect.dependabot.com/freerange/mocha/issues/352), [#383](https://github-redirect.dependabot.com/freerange/mocha/issues/383)) > * Improve documentation for `Mock#responds_like` & `#responds_like_instance_of` - thanks to [@nitishr](https://github.com/nitishr) ([#337](https://github-redirect.dependabot.com/freerange/mocha/issues/337), [#384](https://github-redirect.dependabot.com/freerange/mocha/issues/384)) > * Make `Expectation#yields` & `Expectation#multiple_yields` fail when the caller of the stubbed method does not provide a block. This is a change to an undocumented aspect of the public API's behaviour. If this causes your tests to fail, then fix it by removing the unnecessary call to `Expectation#yields` or `Expectation#multiple_yields` - thanks to [@nitishr](https://github.com/nitishr) ([#382](https://github-redirect.dependabot.com/freerange/mocha/issues/382)) > * Document `MOCHA_OPTIONS` in README - thanks to [@nitishr](https://github.com/nitishr) ([#311](https://github-redirect.dependabot.com/freerange/mocha/issues/311), [#386](https://github-redirect.dependabot.com/freerange/mocha/issues/386)) > * Add documentation to explain how Mocha is intended to be used - thanks to [@nitishr](https://github.com/nitishr) ([#330](https://github-redirect.dependabot.com/freerange/mocha/issues/330), [#385](https://github-redirect.dependabot.com/freerange/mocha/issues/385)) > * Deprecation warning if integration using 'mocha/test_unit' or 'mocha/minitest' fails - thanks to [@nitishr](https://github.com/nitishr) ([#229](https://github-redirect.dependabot.com/freerange/mocha/issues/229), [#389](https://github-redirect.dependabot.com/freerange/mocha/issues/389), c6032d0b) > * Require at least one specified sequence for `Expectation#in_sequence` - thanks to [@nitishr](https://github.com/nitishr) ([#79](https://github-redirect.dependabot.com/freerange/mocha/issues/79), [#396](https://github-redirect.dependabot.com/freerange/mocha/issues/396), 9020248a) > * Make signatures of `Mock#unstub` & `ObjectMethods#unstub` consistent - thanks to [@nitishr](https://github.com/nitishr) ([#397](https://github-redirect.dependabot.com/freerange/mocha/issues/397), f04d437) > * Deprecate requiring 'mocha/setup' (36adf880) > * Optionally display matching invocations alongside expectations - thanks to [@nitishr](https://github.com/nitishr) ([#178](https://github-redirect.dependabot.com/freerange/mocha/issues/178), [#394](https://github-redirect.dependabot.com/freerange/mocha/issues/394), 00f0540, [#410](https://github-redirect.dependabot.com/freerange/mocha/issues/410)) > * Put deprecations into effect ([#400](https://github-redirect.dependabot.com/freerange/mocha/issues/400), [#418](https://github-redirect.dependabot.com/freerange/mocha/issues/418)): > * Remove deprecated 'mocha_standalone.rb' & 'mocha/standalone.rb' > * Fail fast if no test library loaded > * Removed optional block for `Mocha::API#mock`, `#stub` & `#stub_everything` > * Remove deprecated `ParameterMatchers#has_equivalent_query_string` method > * Remove deprecated 'mocha/mini_test.rb' > * Fix typo in docs for `Mocha::Configuration.prevent` (266ce71c) > * New-style configuration (see documentation for `Mocha::Configuration`) ([#407](https://github-redirect.dependabot.com/freerange/mocha/issues/407), [#421](https://github-redirect.dependabot.com/freerange/mocha/issues/421)) > * Deprecate support for Ruby versions earlier than v1.9 ([#325](https://github-redirect.dependabot.com/freerange/mocha/issues/325), c5f8496d) > * Deprecate support for versions of test-unit & minitest which need monkey-patching (a34e1a88) > * Deprecate old-style Rails plugin ([#403](https://github-redirect.dependabot.com/freerange/mocha/issues/403), 2df77134) > * Documentation fixes & improvements which also fix YARD warnings (472d5416, a2c0d64a) > > ### Internal changes > > * Pin minitest to v5.11.3 for Ruby v1.8.7 to fix build; minitest no longer supports Ruby v1.8.7 (4a0a580) > * Upgrade JRuby to v9.2.8.0 in Travis CI builds (aa29b3f) > * Only run rubocop for MRI Ruby versions & non-integration test builds (8f1c6af) > * Reduce duplication in any instance method class - thanks to [@nitishr](https://github.com/nitishr) ([#378](https://github-redirect.dependabot.com/freerange/mocha/issues/378)) > ... (truncated)Commits
- [`5bb2210`](https://github.com/freerange/mocha/commit/5bb2210a66d2e5e3f826d56a502466836c7491c6) [skip ci] Update documentation for v1.10.1 release - [`f44776e`](https://github.com/freerange/mocha/commit/f44776e72b5e7dbe3c69ed309f0b35cff132adea) Bump version to 1.10.1 & prepare for release - [`469d4b1`](https://github.com/freerange/mocha/commit/469d4b174f15075af0ca9427150d25017c908c0c) Reintroduce allow check removed in 948a0c2 - [`4377875`](https://github.com/freerange/mocha/commit/43778756170857b1274697c94c974bb1d5bf805b) Ensure ObjectMethods & ClassMethods included when API extended - [`0b768ee`](https://github.com/freerange/mocha/commit/0b768ee932009b1bcca7a3fd7dda7603b7c23c24) [skip ci] Update documentation for v1.10.0 release - [`059dafb`](https://github.com/freerange/mocha/commit/059dafb738980665dd2e179a8cf55da4890b2c01) Bump version to 1.10.0 & prepare for release - [`d30c171`](https://github.com/freerange/mocha/commit/d30c1717134f8a631bcc531c3228d1b50d3f6670) Add docs for change to undocumented behaviour in API#mock, #stub, etc - [`388f44d`](https://github.com/freerange/mocha/commit/388f44d778c2239b52ffe5c52ace253419f91bd3) Improve deprecation warning when requiring 'mocha/setup' - [`13ab797`](https://github.com/freerange/mocha/commit/13ab797bcf6afd6c4d7d9f6a83bed8c8b9cc3b26) Add documentation for integration with Cucumber - [`2359afc`](https://github.com/freerange/mocha/commit/2359afc123e0de558e9683a81a6a41bf20fd6877) [skip ci] Update documentation in preparation for 1.10.0.beta1 release - Additional commits viewable in [compare view](https://github.com/freerange/mocha/compare/v1.9.0...v1.10.1)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
.If all status checks pass Dependabot will automatically merge this pull request.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)