diff --git a/docs/Mocha.html b/docs/Mocha.html index 3689f0ab..df118ef2 100644 --- a/docs/Mocha.html +++ b/docs/Mocha.html @@ -6,7 +6,7 @@
-19 20 -21+21 +22
# File 'lib/mocha/configuration.rb', line 19 +# File 'lib/mocha/configuration.rb', line 20 def self.configure yield configuration @@ -236,7 +236,7 @@
diff --git a/docs/Mocha/API.html b/docs/Mocha/API.html index bfef9e71..709a896f 100644 --- a/docs/Mocha/API.html +++ b/docs/Mocha/API.html @@ -6,7 +6,7 @@Module: Mocha::API - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -1247,7 +1247,7 @@
diff --git a/docs/Mocha/ClassMethods.html b/docs/Mocha/ClassMethods.html index 02eeba88..6c8565d5 100644 --- a/docs/Mocha/ClassMethods.html +++ b/docs/Mocha/ClassMethods.html @@ -6,7 +6,7 @@Module: Mocha::ClassMethods - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -246,7 +246,7 @@
diff --git a/docs/Mocha/Configuration.html b/docs/Mocha/Configuration.html index 686f37e8..5c77e050 100644 --- a/docs/Mocha/Configuration.html +++ b/docs/Mocha/Configuration.html @@ -6,7 +6,7 @@Class: Mocha::Configuration - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -224,7 +224,7 @@-
Configure whether stubbing methods on the nil
object is allowed.
This method is deprecated and will be removed in a future release. nil
is frozen in Ruby >= v2.2 and Mocha will be dropping support for Ruby v2.1. At that point it won’t be possible to stub methods on nil
any more.
-318 -319 -320 -321 -322 -323 -324+325 +326 +327 +328 +329 +330 +331
# File 'lib/mocha/configuration.rb', line 318 +# File 'lib/mocha/configuration.rb', line 325 def override() original_configuration = configuration @@ -539,12 +539,12 @@
-244 -245 -246+251 +252 +253
# File 'lib/mocha/configuration.rb', line 244 +# File 'lib/mocha/configuration.rb', line 251 def display_matching_invocations_on_failure=(value) @options[:display_matching_invocations_on_failure] = value @@ -647,13 +647,13 @@
-290 -291 -292 -293+297 +298 +299 +300
# File 'lib/mocha/configuration.rb', line 290 +# File 'lib/mocha/configuration.rb', line 297 def strict_keyword_argument_matching=(value) raise 'Strict keyword argument matching requires Ruby 2.7 and above.' unless Mocha::RUBY_V27_PLUS @@ -675,7 +675,10 @@
- +Deprecated.++This method is deprecated and will be removed in a future release.
+nil
is frozen in Ruby >= v2.2 and Mocha will be dropping support for Ruby v2.1. At that point it won’t be possible to stub methods onnil
any more.Configure whether stubbing methods on the
nil
object is allowed.This is usually done accidentally, but there might be rare cases where it is intended.
@@ -716,14 +719,24 @@
-210 -211 -212+212 +213 +214 +215 +216 +217 +218 +219
# File 'lib/mocha/configuration.rb', line 210 +# File 'lib/mocha/configuration.rb', line 212 def stubbing_method_on_nil=(value) + Deprecation.warning([ + '`Mocha::Configuration#stubbing_method_on_nil=` is deprecated and will be removed in a future release.', + '`nil` is frozen in Ruby >= v2.2 and Mocha will be dropping support for Ruby v2.1.', + "At that point it won't be possible to stub methods on `nil` any more." + ].join(' ')) @options[:stubbing_method_on_nil] = value end
-122 123 -124+124 +125
# File 'lib/mocha/configuration.rb', line 122 +# File 'lib/mocha/configuration.rb', line 123 def stubbing_method_on_non_mock_object=(value) @options[:stubbing_method_on_non_mock_object] = value @@ -888,12 +901,12 @@
-89 90 -91+91 +92
# File 'lib/mocha/configuration.rb', line 89 +# File 'lib/mocha/configuration.rb', line 90 def stubbing_method_unnecessarily=(value) @options[:stubbing_method_unnecessarily] = value @@ -976,12 +989,12 @@
-155 156 -157+157 +158
# File 'lib/mocha/configuration.rb', line 155 +# File 'lib/mocha/configuration.rb', line 156 def stubbing_non_existent_method=(value) @options[:stubbing_non_existent_method] = value @@ -1065,12 +1078,12 @@
-189 190 -191+191 +192
# File 'lib/mocha/configuration.rb', line 189 +# File 'lib/mocha/configuration.rb', line 190 def stubbing_non_public_method=(value) @options[:stubbing_non_public_method] = value @@ -1085,7 +1098,7 @@
diff --git a/docs/Mocha/Expectation.html b/docs/Mocha/Expectation.html index 0b05fd41..62c49138 100644 --- a/docs/Mocha/Expectation.html +++ b/docs/Mocha/Expectation.html @@ -6,7 +6,7 @@Class: Mocha::Expectation - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -1059,13 +1059,13 @@
-588 -589 -590 -591+609 +610 +611 +612
# File 'lib/mocha/expectation.rb', line 588 +# File 'lib/mocha/expectation.rb', line 609 def in_sequence(sequence, *sequences) sequences.unshift(sequence).each { |seq| add_in_sequence_ordering_constraint(seq) } @@ -1179,13 +1179,13 @@
-375 -376 -377 -378+396 +397 +398 +399
# File 'lib/mocha/expectation.rb', line 375 +# File 'lib/mocha/expectation.rb', line 396 def multiple_yields(*parameter_groups) @yield_parameters.add(*parameter_groups) @@ -1505,13 +1505,13 @@
-462 -463 -464 -465+483 +484 +485 +486
# File 'lib/mocha/expectation.rb', line 462 +# File 'lib/mocha/expectation.rb', line 483 def raises(exception = RuntimeError, = nil) @return_values += ReturnValues.new(ExceptionRaiser.new(exception, )) @@ -1710,13 +1710,13 @@
-422 -423 -424 -425+443 +444 +445 +446
# File 'lib/mocha/expectation.rb', line 422 +# File 'lib/mocha/expectation.rb', line 443 def returns(*values) @return_values += ReturnValues.build(*values) @@ -1877,13 +1877,13 @@
-536 -537 -538 -539+557 +558 +559 +560
# File 'lib/mocha/expectation.rb', line 536 +# File 'lib/mocha/expectation.rb', line 557 def then(state = nil) add_side_effect(ChangeStateSideEffect.new(state)) if state @@ -2033,13 +2033,13 @@
-501 -502 -503 -504+522 +523 +524 +525
# File 'lib/mocha/expectation.rb', line 501 +# File 'lib/mocha/expectation.rb', line 522 def throws(tag, object = nil) @return_values += ReturnValues.new(Thrower.new(tag, object)) @@ -2349,13 +2349,13 @@
-560 -561 -562 -563+581 +582 +583 +584
# File 'lib/mocha/expectation.rb', line 560 +# File 'lib/mocha/expectation.rb', line 581 def when(state_predicate) add_ordering_constraint(InStateOrderingConstraint.new(state_predicate)) @@ -2382,6 +2382,10 @@
May be used with Ruby literals or variables for exact matching or with parameter matchers for less-specific matching, e.g. ParameterMatchers#includes, ParameterMatchers#has_key, etc. See ParameterMatchers for a list of all available parameter matchers.
+Alternatively a block argument can be passed to #with to implement custom parameter matching. The block receives the *actual_parameters as its arguments and should return
+ +true
if they are acceptable orfalse
otherwise. See the example below where a method is expected to be called with a value divisible by 4. The block argument takes precedence overexpected_parameters_or_matchers
. The block may be called multiple times per invocation of the expected method and so it should be idempotent.Note that if #with is called multiple times on the same expectation, the last call takes precedence; other calls are ignored.
+Positional arguments were separated from keyword arguments in Ruby v3 (see this article). In relation to this a new configuration option (Configuration#strict_keyword_argument_matching=) is available in Ruby >= 2.7.
When Configuration#strict_keyword_argument_matching= is set to
@@ -2462,7 +2466,7 @@false
(which is currently the default), a positionalHash
and a set of keyword arguments passed to #with are treated the same for the purposes of parameter matching. However, a deprecation warning will be displayed if a positionalHash
matches a set of keyword arguments or vice versa. This is because Configuration#strict_keyword_argument_matching= will default totrue
in the future.
-Expected method must be called with a value divisible by 4.
+Using a block argument to expect the method to be called with a value divisible by 4.
object = mock() @@ -2475,6 +2479,26 @@
object.expected_method(17) # => verify fails + ++ +
+Extracting a custom matcher into an instance method on the test class.
++class MyTest < Minitest::Test + def test_expected_method_is_called_with_a_value_divisible_by_4 + object = mock() + object.expects(:expected_method).with(&method(:divisible_by_4)) + object.expected_method(16) + # => verify succeeds + end + + private + + def divisible_by_4(value) + value % 4 == 0 + end +end
Parameters:
@@ -2484,7 +2508,7 @@
expected_parameters_or_matchers - (*Array<Object,ParameterMatchers::Base>) + (Array<Object,ParameterMatchers::Base>) @@ -2523,7 +2547,7 @@
actual_parameters - (*Array<Object>) + (Array<Object>) @@ -2547,7 +2571,7 @@
—-@@ -2587,13 +2611,13 @@+
true
ifactual_parameters
are acceptable.
true
ifactual_parameters
are acceptable;false
otherwise.
-269 -270 -271 -272+290 +291 +292 +293
# File 'lib/mocha/expectation.rb', line 269 +# File 'lib/mocha/expectation.rb', line 290 def with(*expected_parameters_or_matchers, &matching_block) @parameters_matcher = ParametersMatcher.new(expected_parameters_or_matchers, self, &matching_block) @@ -2668,13 +2692,13 @@
-289 -290 -291 -292+310 +311 +312 +313
# File 'lib/mocha/expectation.rb', line 289 +# File 'lib/mocha/expectation.rb', line 310 def with_block_given @block_matcher = BlockMatchers::BlockGiven.new @@ -2749,13 +2773,13 @@
-308 -309 -310 -311+329 +330 +331 +332
# File 'lib/mocha/expectation.rb', line 308 +# File 'lib/mocha/expectation.rb', line 329 def with_no_block_given @block_matcher = BlockMatchers::NoBlockGiven.new @@ -2883,12 +2907,12 @@
-347 -348 -349+368 +369 +370
# File 'lib/mocha/expectation.rb', line 347 +# File 'lib/mocha/expectation.rb', line 368 def yields(*parameters) multiple_yields(parameters) @@ -2903,7 +2927,7 @@
diff --git a/docs/Mocha/ExpectationError.html b/docs/Mocha/ExpectationError.html index 1727a8fc..76a1ae03 100644 --- a/docs/Mocha/ExpectationError.html +++ b/docs/Mocha/ExpectationError.html @@ -6,7 +6,7 @@Exception: Mocha::ExpectationError - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -134,7 +134,7 @@Overview
diff --git a/docs/Mocha/ExpectationErrorFactory.html b/docs/Mocha/ExpectationErrorFactory.html index c290f22a..a499e2f6 100644 --- a/docs/Mocha/ExpectationErrorFactory.html +++ b/docs/Mocha/ExpectationErrorFactory.html @@ -6,7 +6,7 @@Class: Mocha::ExpectationErrorFactory - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -242,7 +242,7 @@diff --git a/docs/Mocha/Hooks.html b/docs/Mocha/Hooks.html index 1e121dd2..61fc654b 100644 --- a/docs/Mocha/Hooks.html +++ b/docs/Mocha/Hooks.html @@ -6,7 +6,7 @@
Module: Mocha::Hooks - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -417,7 +417,7 @@diff --git a/docs/Mocha/Integration.html b/docs/Mocha/Integration.html index da7b7528..00b22fa4 100644 --- a/docs/Mocha/Integration.html +++ b/docs/Mocha/Integration.html @@ -6,7 +6,7 @@
Module: Mocha::Integration - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -107,7 +107,7 @@Defined Under Namespace
diff --git a/docs/Mocha/Integration/MiniTest.html b/docs/Mocha/Integration/MiniTest.html index 27f393f4..2b2102ee 100644 --- a/docs/Mocha/Integration/MiniTest.html +++ b/docs/Mocha/Integration/MiniTest.html @@ -6,7 +6,7 @@Module: Mocha::Integration::Minitest - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -105,7 +105,7 @@Defined Under Namespace
diff --git a/docs/Mocha/Integration/MiniTest/Adapter.html b/docs/Mocha/Integration/MiniTest/Adapter.html index 65a944a6..2f599f76 100644 --- a/docs/Mocha/Integration/MiniTest/Adapter.html +++ b/docs/Mocha/Integration/MiniTest/Adapter.html @@ -6,7 +6,7 @@Module: Mocha::Integration::Minitest::Adapter - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -146,7 +146,7 @@Methods included from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:24 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/Integration/TestUnit.html b/docs/Mocha/Integration/TestUnit.html index b748a98e..d27dcf30 100644 --- a/docs/Mocha/Integration/TestUnit.html +++ b/docs/Mocha/Integration/TestUnit.html @@ -6,7 +6,7 @@
Module: Mocha::Integration::TestUnit - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -105,7 +105,7 @@Defined Under Namespace
diff --git a/docs/Mocha/Integration/TestUnit/Adapter.html b/docs/Mocha/Integration/TestUnit/Adapter.html index e221457c..8ca21a9b 100644 --- a/docs/Mocha/Integration/TestUnit/Adapter.html +++ b/docs/Mocha/Integration/TestUnit/Adapter.html @@ -6,7 +6,7 @@Module: Mocha::Integration::TestUnit::Adapter - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -146,7 +146,7 @@Methods included from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:24 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/Mock.html b/docs/Mocha/Mock.html index f8953973..fa418665 100644 --- a/docs/Mocha/Mock.html +++ b/docs/Mocha/Mock.html @@ -6,7 +6,7 @@
Class: Mocha::Mock - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -1118,7 +1118,7 @@
diff --git a/docs/Mocha/ObjectMethods.html b/docs/Mocha/ObjectMethods.html index 7dc5851c..d0d34960 100644 --- a/docs/Mocha/ObjectMethods.html +++ b/docs/Mocha/ObjectMethods.html @@ -6,7 +6,7 @@Module: Mocha::ObjectMethods - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -747,7 +747,7 @@
diff --git a/docs/Mocha/ParameterMatchers.html b/docs/Mocha/ParameterMatchers.html index d6260ac5..cd0ec195 100644 --- a/docs/Mocha/ParameterMatchers.html +++ b/docs/Mocha/ParameterMatchers.html @@ -6,7 +6,7 @@Module: Mocha::ParameterMatchers - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -3167,7 +3167,7 @@
diff --git a/docs/Mocha/ParameterMatchers/AllOf.html b/docs/Mocha/ParameterMatchers/AllOf.html index 1530a6c5..318c8005 100644 --- a/docs/Mocha/ParameterMatchers/AllOf.html +++ b/docs/Mocha/ParameterMatchers/AllOf.html @@ -6,7 +6,7 @@Class: Mocha::ParameterMatchers::AllOf - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/AnyOf.html b/docs/Mocha/ParameterMatchers/AnyOf.html index 7c3eb289..6cb4879d 100644 --- a/docs/Mocha/ParameterMatchers/AnyOf.html +++ b/docs/Mocha/ParameterMatchers/AnyOf.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::AnyOf - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/AnyParameters.html b/docs/Mocha/ParameterMatchers/AnyParameters.html index 6ab3df40..30ef9fb4 100644 --- a/docs/Mocha/ParameterMatchers/AnyParameters.html +++ b/docs/Mocha/ParameterMatchers/AnyParameters.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::AnyParameters - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/Anything.html b/docs/Mocha/ParameterMatchers/Anything.html index 17ca5bc2..25f4cd3d 100644 --- a/docs/Mocha/ParameterMatchers/Anything.html +++ b/docs/Mocha/ParameterMatchers/Anything.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Anything - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/Base.html b/docs/Mocha/ParameterMatchers/Base.html index 14deba14..6dffcd78 100644 --- a/docs/Mocha/ParameterMatchers/Base.html +++ b/docs/Mocha/ParameterMatchers/Base.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Base - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -423,7 +423,7 @@
diff --git a/docs/Mocha/ParameterMatchers/Equals.html b/docs/Mocha/ParameterMatchers/Equals.html index e2c00fca..55447f81 100644 --- a/docs/Mocha/ParameterMatchers/Equals.html +++ b/docs/Mocha/ParameterMatchers/Equals.html @@ -6,7 +6,7 @@Class: Mocha::ParameterMatchers::Equals - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/EquivalentUri.html b/docs/Mocha/ParameterMatchers/EquivalentUri.html index 2fc1864e..87f6e14d 100644 --- a/docs/Mocha/ParameterMatchers/EquivalentUri.html +++ b/docs/Mocha/ParameterMatchers/EquivalentUri.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::EquivalentUri - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/HasEntries.html b/docs/Mocha/ParameterMatchers/HasEntries.html index a5cf2954..2529f997 100644 --- a/docs/Mocha/ParameterMatchers/HasEntries.html +++ b/docs/Mocha/ParameterMatchers/HasEntries.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasEntries - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/HasEntry.html b/docs/Mocha/ParameterMatchers/HasEntry.html index fde68400..d6a08cba 100644 --- a/docs/Mocha/ParameterMatchers/HasEntry.html +++ b/docs/Mocha/ParameterMatchers/HasEntry.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasEntry - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/HasKey.html b/docs/Mocha/ParameterMatchers/HasKey.html index c75841c6..7039c736 100644 --- a/docs/Mocha/ParameterMatchers/HasKey.html +++ b/docs/Mocha/ParameterMatchers/HasKey.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasKey - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/HasKeys.html b/docs/Mocha/ParameterMatchers/HasKeys.html index d0c7c58a..4985d356 100644 --- a/docs/Mocha/ParameterMatchers/HasKeys.html +++ b/docs/Mocha/ParameterMatchers/HasKeys.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasKeys - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/HasValue.html b/docs/Mocha/ParameterMatchers/HasValue.html index 33c67fcc..b1868e7e 100644 --- a/docs/Mocha/ParameterMatchers/HasValue.html +++ b/docs/Mocha/ParameterMatchers/HasValue.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasValue - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/Includes.html b/docs/Mocha/ParameterMatchers/Includes.html index 7250291b..6fe18993 100644 --- a/docs/Mocha/ParameterMatchers/Includes.html +++ b/docs/Mocha/ParameterMatchers/Includes.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Includes - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/InstanceOf.html b/docs/Mocha/ParameterMatchers/InstanceOf.html index 19d8def5..0b5519e7 100644 --- a/docs/Mocha/ParameterMatchers/InstanceOf.html +++ b/docs/Mocha/ParameterMatchers/InstanceOf.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::InstanceOf - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/IsA.html b/docs/Mocha/ParameterMatchers/IsA.html index d16af2b6..4f88f42d 100644 --- a/docs/Mocha/ParameterMatchers/IsA.html +++ b/docs/Mocha/ParameterMatchers/IsA.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::IsA - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/KindOf.html b/docs/Mocha/ParameterMatchers/KindOf.html index c67c8a87..e5162fdf 100644 --- a/docs/Mocha/ParameterMatchers/KindOf.html +++ b/docs/Mocha/ParameterMatchers/KindOf.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::KindOf - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/Not.html b/docs/Mocha/ParameterMatchers/Not.html index 26d210e9..8c2f6dc8 100644 --- a/docs/Mocha/ParameterMatchers/Not.html +++ b/docs/Mocha/ParameterMatchers/Not.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Not - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/Optionally.html b/docs/Mocha/ParameterMatchers/Optionally.html index f96d7e51..4a424b9e 100644 --- a/docs/Mocha/ParameterMatchers/Optionally.html +++ b/docs/Mocha/ParameterMatchers/Optionally.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Optionally - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/RegexpMatches.html b/docs/Mocha/ParameterMatchers/RegexpMatches.html index 174c8949..462ca24c 100644 --- a/docs/Mocha/ParameterMatchers/RegexpMatches.html +++ b/docs/Mocha/ParameterMatchers/RegexpMatches.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::RegexpMatches - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/RespondsWith.html b/docs/Mocha/ParameterMatchers/RespondsWith.html index bcb1b441..2bd4ef60 100644 --- a/docs/Mocha/ParameterMatchers/RespondsWith.html +++ b/docs/Mocha/ParameterMatchers/RespondsWith.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::RespondsWith - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/ParameterMatchers/YamlEquivalent.html b/docs/Mocha/ParameterMatchers/YamlEquivalent.html index a149ff86..ac2a8bd8 100644 --- a/docs/Mocha/ParameterMatchers/YamlEquivalent.html +++ b/docs/Mocha/ParameterMatchers/YamlEquivalent.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::YamlEquivalent - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -135,7 +135,7 @@Methods inherited from - Generated on Sat Dec 7 12:49:10 2024 by + Generated on Mon Dec 9 12:52:25 2024 by yard 0.9.37 (ruby-3.3.6). diff --git a/docs/Mocha/Sequence.html b/docs/Mocha/Sequence.html index f3ac4709..4f1f23cb 100644 --- a/docs/Mocha/Sequence.html +++ b/docs/Mocha/Sequence.html @@ -6,7 +6,7 @@
Class: Mocha::Sequence - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -131,7 +131,7 @@Overview
diff --git a/docs/Mocha/StateMachine.html b/docs/Mocha/StateMachine.html index f4fcacbc..e8d47d54 100644 --- a/docs/Mocha/StateMachine.html +++ b/docs/Mocha/StateMachine.html @@ -6,7 +6,7 @@Class: Mocha::StateMachine - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -664,7 +664,7 @@diff --git a/docs/Mocha/StateMachine/State.html b/docs/Mocha/StateMachine/State.html index 1024330a..4325f2dc 100644 --- a/docs/Mocha/StateMachine/State.html +++ b/docs/Mocha/StateMachine/State.html @@ -6,7 +6,7 @@
Class: Mocha::StateMachine::State - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -130,7 +130,7 @@Overview
diff --git a/docs/Mocha/StateMachine/StatePredicate.html b/docs/Mocha/StateMachine/StatePredicate.html index e8ba4a00..312f79bf 100644 --- a/docs/Mocha/StateMachine/StatePredicate.html +++ b/docs/Mocha/StateMachine/StatePredicate.html @@ -6,7 +6,7 @@Class: Mocha::StateMachine::StatePredicate - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -126,7 +126,7 @@Direct Known Subclasses
diff --git a/docs/Mocha/StubbingError.html b/docs/Mocha/StubbingError.html index 984c3f0e..a5c09e00 100644 --- a/docs/Mocha/StubbingError.html +++ b/docs/Mocha/StubbingError.html @@ -6,7 +6,7 @@Class: Mocha::StubbingError - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -132,7 +132,7 @@Overview
diff --git a/docs/_index.html b/docs/_index.html index 1c01e3ad..c348dd14 100644 --- a/docs/_index.html +++ b/docs/_index.html @@ -4,7 +4,7 @@- Mocha 2.7.0 + Mocha 2.7.1 @@ -52,7 +52,7 @@ -diff --git a/docs/file.MIT-LICENSE.html b/docs/file.MIT-LICENSE.html index e46af3ee..cd1fa8df 100644 --- a/docs/file.MIT-LICENSE.html +++ b/docs/file.MIT-LICENSE.html @@ -6,7 +6,7 @@Mocha 2.7.0
+Mocha 2.7.1
diff --git a/docs/file.COPYING.html b/docs/file.COPYING.html index f7b714dc..8c99c316 100644 --- a/docs/file.COPYING.html +++ b/docs/file.COPYING.html @@ -6,7 +6,7 @@Alphabetic Index
@@ -508,7 +508,7 @@Namespace Listing A-Z
File: COPYING - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -63,7 +63,7 @@File: MIT-LICENSE - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -67,7 +67,7 @@ diff --git a/docs/file.README.html b/docs/file.README.html index 2f06e089..96d6ac6d 100644 --- a/docs/file.README.html +++ b/docs/file.README.html @@ -6,7 +6,7 @@File: README - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -430,7 +430,7 @@License
diff --git a/docs/file.RELEASE.html b/docs/file.RELEASE.html index e20201fe..c4670de8 100644 --- a/docs/file.RELEASE.html +++ b/docs/file.RELEASE.html @@ -6,7 +6,7 @@File: RELEASE - — Mocha 2.7.0 + — Mocha 2.7.1 @@ -59,6 +59,16 @@diff --git a/docs/frames.html b/docs/frames.html index 2851f79f..5fb630ff 100644 --- a/docs/frames.html +++ b/docs/frames.html @@ -2,7 +2,7 @@ -Release Notes
+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
@@ -1529,7 +1539,7 @@0.1.1
Mocha 2.7.0 +Mocha 2.7.1