21313a7edc
Update ruby-mocha to 1.11.2. ## 1.11.2 ### External changes * Fix regression introduced in v1.10.0 that meant `Object#inspect` was called unnecessarily (368abd98) * Warn when mock object receives invocations in another test - thanks to @nitishr (#442) * Avoid rubocop comments appearing in YARD-generated docs (d8019eed) ### Internal changes * Replace `StubbedMethod#original_method` & `#original_visibility` attribute reader methods with instance variables - thanks to @nitishr (d917f332) * Set up `MochaExampleTest` & `StubbaExampleTest` as acceptance tests - thanks to @nitishr (4881cc58) * Delete unused `PrettyParameters` class - thanks to @nitishr (314ea922) ## 1.11.1 ### External changes * The `reinstate_undocumented_behaviour_from_v1_9` configuration option is now enabled by default to give people a chance to see and fix the relevant deprecation warnings before the behaviour is removed in a future release (b91b1c9e) ## 1.11.0 ### External changes * Add `Expectation#with_block_given` & `Expectation#with_no_block_given` (#441). * Allows non-deprecated solution for #382. Thanks to @yemartin for reporting and to @techbelly & @nitishr for feedback. * Fix issue with non-Array arguments passed to `Expectation#multiple_yields` (#444). * The undocumented behaviour is now properly supported and documented. ### Internal changes * Move static YARD options from Rake task to `.yardopts` file - thanks to @nitishr (#429) * Simplify implementation of yielding functionality - thanks to @nitishr (#439) * Add missing require statement to `acceptance_test_helper.rb` (1070fc02) * Add some baseline acceptance tests for yielding behaviour (c2cac911) * Display a sponsor button on GitHub repo page (9fc5911b) * Use new Deprecation.warning behaviour in `Invocation#call` (932d1166) ## 1.10.2 * Optionally reinstate undocumented behaviour from v1.9. This introduces a new configuration option (`reinstate_undocumented_behaviour_from_v1_9`) to reinstate a couple of bits of undocumented behaviour from v1.9 which were changed in v1.10 without any prior deprecation warning (#438): * The behaviour of `API#mock`, `API#stub` and `API#stub_everything` when called with a symbol as the first argument. * The behaviour of `Expectation#yields` and `Expectation#multiple_yields` when the stubbed method is called without a block. ## 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 for reporting & @nitishr for fixing (#432, #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) ## 1.10.0.alpha ### External changes * Remove dependency on metaclass gem (#49, #365) * Accept symbol (as well as a string) as mock/stub name - thanks to @nitishr (#347, #353, #377) * More realistic examples in documentation for `Expectation#yields` and `#multiple_yields` - thanks to @nitishr (#352, #383) * Improve documentation for `Mock#responds_like` & `#responds_like_instance_of` - thanks to @nitishr (#337, #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 (#382) * Document `MOCHA_OPTIONS` in README - thanks to @nitishr (#311, #386) * Add documentation to explain how Mocha is intended to be used - thanks to @nitishr (#330, #385) * Deprecation warning if integration using 'mocha/test_unit' or 'mocha/minitest' fails - thanks to @nitishr (#229, #389, c6032d0b) * Require at least one specified sequence for `Expectation#in_sequence` - thanks to @nitishr (#79, #396, 9020248a) * Make signatures of `Mock#unstub` & `ObjectMethods#unstub` consistent - thanks to @nitishr (#397, f04d437) * Deprecate requiring 'mocha/setup' (36adf880) * Optionally display matching invocations alongside expectations - thanks to @nitishr (#178, #394, 00f0540, #410) * Put deprecations into effect (#400, #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, #421) * Deprecate support for Ruby versions earlier than v1.9 (#325, c5f8496d) * Deprecate support for versions of test-unit & minitest which need monkey-patching (a34e1a88) * Deprecate old-style Rails plugin (#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 (#378) * Simplify `AnyInstanceMethod`, `ClassMethod`, `InstanceMethod`, `ModuleMethod` class hierarchy - thanks to @nitishr (#381) * Simplify `ClassMethods#method_exists?` & `ObjectMethods#method_exists?` making them consistent - thanks to @nitishr (#270, #362, #370) * Don't override definition of `singleton_class` in `ClassMethods` - thanks to @nitishr (#391, #392) * Do not include 'method_definer' methods into all objects (#268, #402) * Distinguish different `ObjectMethods` modules (#268, #404) * Pass invocation to expectation list methods - thanks to @nitishr (#408, #409, #411) * Consistently use `assert_raises` - thanks to @nitishr (#405, #412, a66b7bed) * Update Ruby & JRuby versions in Travis CI config (18cb1a93, eb061c53) * Rubocop improvements (aa16ea67...6f4db70b, 2a1240e6...e95716ae) * Fix inconsistency in CardinalityTest (aa10e0a8) * Fix test failures on Mac OSX Catalina - thanks to @nitishr (#413, #417, #419, 8a0f2535) * Remove default argument in `Expectation#invoke` - thanks to @nitishr (#414, #420) |
||
---|---|---|
.. | ||
DESCR | ||
distinfo | ||
Makefile | ||
PLIST |