Changelog
*Sourced from [mocha's changelog](https://github.com/freerange/mocha/blob/master/RELEASE.md).*
> ## 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))
> * Simplify `AnyInstanceMethod`, `ClassMethod`, `InstanceMethod`, `ModuleMethod` class hierarchy - thanks to [@nitishr](https://github.com/nitishr) ([#381](https://github-redirect.dependabot.com/freerange/mocha/issues/381))
> * Simplify `ClassMethods#method_exists?` & `ObjectMethods#method_exists?` making them consistent - thanks to [@nitishr](https://github.com/nitishr) ([#270](https://github-redirect.dependabot.com/freerange/mocha/issues/270), [#362](https://github-redirect.dependabot.com/freerange/mocha/issues/362), [#370](https://github-redirect.dependabot.com/freerange/mocha/issues/370))
> * Don't override definition of `singleton_class` in `ClassMethods` - thanks to [@nitishr](https://github.com/nitishr) ([#391](https://github-redirect.dependabot.com/freerange/mocha/issues/391), [#392](https://github-redirect.dependabot.com/freerange/mocha/issues/392))
> * Do not include 'method_definer' methods into all objects ([#268](https://github-redirect.dependabot.com/freerange/mocha/issues/268), [#402](https://github-redirect.dependabot.com/freerange/mocha/issues/402))
> * Distinguish different `ObjectMethods` modules ([#268](https://github-redirect.dependabot.com/freerange/mocha/issues/268), [#404](https://github-redirect.dependabot.com/freerange/mocha/issues/404))
> ... (truncated)
Commits
- [`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
- [`ef70734`](https://github.com/freerange/mocha/commit/ef70734de1844f587846dbb71b720f4b8b06471f) Update release notes & bump version in preparation for release
- [`894243e`](https://github.com/freerange/mocha/commit/894243ee7d7a76d5c2897b09727118f20a8f65cc) Hide ClassMethods#method_visibility & #method_exists? methods to avoid clash ...
- [`3e76e4b`](https://github.com/freerange/mocha/commit/3e76e4b82f4d354a8201166073547251580a5c1a) Rename ClassMethods#method_exists? -> __method_exists__?
- [`11befbe`](https://github.com/freerange/mocha/commit/11befbeb3fd3c39720b63f76b42ecb4a6ab48a05) Rename ClassMethods#method_visibility -> __method_visibility__
- Additional commits viewable in [compare view](https://github.com/freerange/mocha/compare/v1.9.0...v1.10.0)
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.0.
Changelog
*Sourced from [mocha's changelog](https://github.com/freerange/mocha/blob/master/RELEASE.md).* > ## 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)) > * Simplify `AnyInstanceMethod`, `ClassMethod`, `InstanceMethod`, `ModuleMethod` class hierarchy - thanks to [@nitishr](https://github.com/nitishr) ([#381](https://github-redirect.dependabot.com/freerange/mocha/issues/381)) > * Simplify `ClassMethods#method_exists?` & `ObjectMethods#method_exists?` making them consistent - thanks to [@nitishr](https://github.com/nitishr) ([#270](https://github-redirect.dependabot.com/freerange/mocha/issues/270), [#362](https://github-redirect.dependabot.com/freerange/mocha/issues/362), [#370](https://github-redirect.dependabot.com/freerange/mocha/issues/370)) > * Don't override definition of `singleton_class` in `ClassMethods` - thanks to [@nitishr](https://github.com/nitishr) ([#391](https://github-redirect.dependabot.com/freerange/mocha/issues/391), [#392](https://github-redirect.dependabot.com/freerange/mocha/issues/392)) > * Do not include 'method_definer' methods into all objects ([#268](https://github-redirect.dependabot.com/freerange/mocha/issues/268), [#402](https://github-redirect.dependabot.com/freerange/mocha/issues/402)) > * Distinguish different `ObjectMethods` modules ([#268](https://github-redirect.dependabot.com/freerange/mocha/issues/268), [#404](https://github-redirect.dependabot.com/freerange/mocha/issues/404)) > ... (truncated)Commits
- [`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 - [`ef70734`](https://github.com/freerange/mocha/commit/ef70734de1844f587846dbb71b720f4b8b06471f) Update release notes & bump version in preparation for release - [`894243e`](https://github.com/freerange/mocha/commit/894243ee7d7a76d5c2897b09727118f20a8f65cc) Hide ClassMethods#method_visibility & #method_exists? methods to avoid clash ... - [`3e76e4b`](https://github.com/freerange/mocha/commit/3e76e4b82f4d354a8201166073547251580a5c1a) Rename ClassMethods#method_exists? -> __method_exists__? - [`11befbe`](https://github.com/freerange/mocha/commit/11befbeb3fd3c39720b63f76b42ecb4a6ab48a05) Rename ClassMethods#method_visibility -> __method_visibility__ - Additional commits viewable in [compare view](https://github.com/freerange/mocha/compare/v1.9.0...v1.10.0)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)