diff --git a/docs/Mocha.html b/docs/Mocha.html index be08e95d1..d90aaa2ef 100644 --- a/docs/Mocha.html +++ b/docs/Mocha.html @@ -6,7 +6,7 @@
Builds a new mock object
-rubocop:disable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
- @@ -533,8 +531,8 @@# File 'lib/mocha/api.rb', line 69 -def mock(*arguments) - if Mocha.configuration.reinstate_undocumented_behaviour_from_v1_9? +def mock(*arguments) # rubocop:disable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity + if Mocha.configuration.reinstate_undocumented_behaviour_from_v1_9? if arguments.first.is_a?(Symbol) method_name = arguments[0] Deprecation.warning( @@ -634,12 +632,12 @@
+207 208 -209 -210+209
# File 'lib/mocha/api.rb', line 208 +# File 'lib/mocha/api.rb', line 207 def sequence(name) Sequence.new(name) @@ -733,12 +731,12 @@
+237 238 -239 -240+239
# File 'lib/mocha/api.rb', line 238 +# File 'lib/mocha/api.rb', line 237 def states(name) Mockery.instance.new_state_machine(name) @@ -937,6 +935,7 @@
+115 116 117 118 @@ -960,11 +959,10 @@+139136 137 138 -139 -140
# File 'lib/mocha/api.rb', line 116 +# File 'lib/mocha/api.rb', line 115 def stub(*arguments) if Mocha.configuration.reinstate_undocumented_behaviour_from_v1_9? @@ -1203,6 +1201,7 @@
+163 164 165 166 @@ -1227,11 +1226,10 @@+188185 186 187 -188 -189
# File 'lib/mocha/api.rb', line 164 +# File 'lib/mocha/api.rb', line 163 def stub_everything(*arguments) if Mocha.configuration.reinstate_undocumented_behaviour_from_v1_9? @@ -1277,7 +1275,7 @@diff --git a/docs/Mocha/ClassMethods.html b/docs/Mocha/ClassMethods.html index 187393308..4c4b654a9 100644 --- a/docs/Mocha/ClassMethods.html +++ b/docs/Mocha/ClassMethods.html @@ -6,7 +6,7 @@
Module: Mocha::ClassMethods - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -254,7 +254,7 @@diff --git a/docs/Mocha/Configuration.html b/docs/Mocha/Configuration.html index c31df0c84..bc3543b5b 100644 --- a/docs/Mocha/Configuration.html +++ b/docs/Mocha/Configuration.html @@ -6,7 +6,7 @@
Class: Mocha::Configuration - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -1515,7 +1515,7 @@diff --git a/docs/Mocha/Expectation.html b/docs/Mocha/Expectation.html index d7c0bb1b8..7749dc8f9 100644 --- a/docs/Mocha/Expectation.html +++ b/docs/Mocha/Expectation.html @@ -6,7 +6,7 @@
Class: Mocha::Expectation - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -2852,7 +2852,7 @@diff --git a/docs/Mocha/ExpectationError.html b/docs/Mocha/ExpectationError.html index 871f06d79..bc3eda70d 100644 --- a/docs/Mocha/ExpectationError.html +++ b/docs/Mocha/ExpectationError.html @@ -6,7 +6,7 @@
Exception: Mocha::ExpectationError - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -142,7 +142,7 @@Overview
diff --git a/docs/Mocha/ExpectationErrorFactory.html b/docs/Mocha/ExpectationErrorFactory.html index 47a05f493..c474523da 100644 --- a/docs/Mocha/ExpectationErrorFactory.html +++ b/docs/Mocha/ExpectationErrorFactory.html @@ -6,7 +6,7 @@Class: Mocha::ExpectationErrorFactory - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -250,7 +250,7 @@diff --git a/docs/Mocha/Hooks.html b/docs/Mocha/Hooks.html index 3c5e6d59d..516a93377 100644 --- a/docs/Mocha/Hooks.html +++ b/docs/Mocha/Hooks.html @@ -6,7 +6,7 @@
Module: Mocha::Hooks - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -360,7 +360,7 @@diff --git a/docs/Mocha/Integration.html b/docs/Mocha/Integration.html index f3b35caf3..0bd834213 100644 --- a/docs/Mocha/Integration.html +++ b/docs/Mocha/Integration.html @@ -6,7 +6,7 @@
Module: Mocha::Integration - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -115,7 +115,7 @@Defined Under Namespace
diff --git a/docs/Mocha/Integration/MiniTest.html b/docs/Mocha/Integration/MiniTest.html index 5055f434f..6c216d99c 100644 --- a/docs/Mocha/Integration/MiniTest.html +++ b/docs/Mocha/Integration/MiniTest.html @@ -6,7 +6,7 @@Module: Mocha::Integration::MiniTest - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -113,7 +113,7 @@Defined Under Namespace
diff --git a/docs/Mocha/Integration/MiniTest/Adapter.html b/docs/Mocha/Integration/MiniTest/Adapter.html index 2d4466fb3..a459c8b4d 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 1.11.1 + — Mocha 1.11.2 @@ -154,7 +154,7 @@Methods included from - Generated on Tue Dec 17 12:49:35 2019 by + Generated on Sat Jan 4 17:36:47 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/Integration/TestUnit.html b/docs/Mocha/Integration/TestUnit.html index fe1a8742c..3a24085de 100644 --- a/docs/Mocha/Integration/TestUnit.html +++ b/docs/Mocha/Integration/TestUnit.html @@ -6,7 +6,7 @@
Module: Mocha::Integration::TestUnit - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -113,7 +113,7 @@Defined Under Namespace
diff --git a/docs/Mocha/Integration/TestUnit/Adapter.html b/docs/Mocha/Integration/TestUnit/Adapter.html index b81198242..40e56106b 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 1.11.1 + — Mocha 1.11.2 @@ -154,7 +154,7 @@Methods included from - Generated on Tue Dec 17 12:49:35 2019 by + Generated on Sat Jan 4 17:36:47 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/Mock.html b/docs/Mocha/Mock.html index e5b8b529f..0d6dfd21f 100644 --- a/docs/Mocha/Mock.html +++ b/docs/Mocha/Mock.html @@ -6,7 +6,7 @@
Class: Mocha::Mock - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -334,18 +334,7 @@-
--- --rubocop:disable Style/MethodMissingSuper,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
- - -+
@@ -1347,8 +1345,6 @@ @@ -360,35 +349,19 @@+318315 316 317 -318 -319 -320 -321 -322 -323 -324 -325 -326
@@ -643,12 +616,12 @@ # File 'lib/mocha/mock.rb', line 309 -def method_missing(symbol, *arguments, &block) - if @responder && !@responder.respond_to?(symbol) - raise NoMethodError, "undefined method `#{symbol}' for #{mocha_inspect} which responds like #{@responder.mocha_inspect}" - end +def method_missing(symbol, *arguments, &block) # rubocop:disable Style/MethodMissingSuper + check_expiry + check_responder_responds_to(symbol) invocation = Invocation.new(self, symbol, *arguments, &block) if (matching_expectation_allowing_invocation = all_expectations.match_allowing_invocation(invocation)) matching_expectation_allowing_invocation.invoke(invocation) elsif (matching_expectation = all_expectations.match(invocation)) || (!matching_expectation && !@everything_stubbed) - if @unexpected_invocation.nil? - @unexpected_invocation = invocation - matching_expectation.invoke(invocation) if matching_expectation - = "#{@unexpected_invocation.call_description}\n#{@mockery.mocha_inspect}" - else - = @unexpected_invocation.short_call_description - end - raise ExpectationErrorFactory.build("unexpected invocation: #{}", caller) + raise_unexpected_invocation_error(invocation, matching_expectation) end end
-344 -345 -346+335 +336 +337- # File 'lib/mocha/mock.rb', line 344 +# File 'lib/mocha/mock.rb', line 335 def respond_to?(symbol, include_private = false) respond_to_missing?(symbol, include_private) @@ -1227,7 +1200,7 @@diff --git a/docs/Mocha/ObjectMethods.html b/docs/Mocha/ObjectMethods.html index 064280456..c21d387c3 100644 --- a/docs/Mocha/ObjectMethods.html +++ b/docs/Mocha/ObjectMethods.html @@ -6,7 +6,7 @@
Module: Mocha::ObjectMethods - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -755,7 +755,7 @@diff --git a/docs/Mocha/ParameterMatchers.html b/docs/Mocha/ParameterMatchers.html index 69f0839bb..b04a53adb 100644 --- a/docs/Mocha/ParameterMatchers.html +++ b/docs/Mocha/ParameterMatchers.html @@ -6,7 +6,7 @@
Module: Mocha::ParameterMatchers - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -1230,8 +1230,6 @@
Matches
-Hash
containing allentries
.rubocop:disable Naming/PredicateName
- @@ -1321,8 +1319,8 @@
# File 'lib/mocha/parameter_matchers/has_entries.rb', line 26 -def has_entries(entries) - HasEntries.new(entries) +def has_entries(entries) # rubocop:disable Naming/PredicateName + HasEntries.new(entries) end
Matches
-Hash
containing entry withkey
andvalue
.rubocop:disable Naming/PredicateName
- @@ -1568,8 +1564,8 @@
# File 'lib/mocha/parameter_matchers/has_entry.rb', line 43 -def has_entry(*) - case .length +def has_entry(*) # rubocop:disable Naming/PredicateName + case .length when 1 case [0] when Hash @@ -1610,8 +1606,6 @@
Matches
-Hash
containingkey
.rubocop:disable Naming/PredicateName
- @@ -1701,8 +1695,8 @@
@@ -1723,8 +1717,6 @@ # File 'lib/mocha/parameter_matchers/has_key.rb', line 24 -def has_key(key) - HasKey.new(key) +def has_key(key) # rubocop:disable Naming/PredicateName + HasKey.new(key) end
Matches
-Hash
containingvalue
.rubocop:disable Naming/PredicateName
- @@ -1814,8 +1806,8 @@
@@ -2130,8 +2122,6 @@ # File 'lib/mocha/parameter_matchers/has_value.rb', line 24 -def has_value(value) - HasValue.new(value) +def has_value(value) # rubocop:disable Naming/PredicateName + HasValue.new(value) end
Matches any object that is a
-klass
.rubocop:disable Naming/PredicateName
- @@ -2223,8 +2213,8 @@
@@ -2358,8 +2348,6 @@ # File 'lib/mocha/parameter_matchers/is_a.rb', line 25 -def is_a(klass) - IsA.new(klass) +def is_a(klass) # rubocop:disable Naming/PredicateName + IsA.new(klass) end
Matches if
-matcher
does not match.rubocop:disable Naming/MethodName
- @@ -2449,8 +2437,8 @@
@@ -2951,7 +2939,7 @@ # File 'lib/mocha/parameter_matchers/not.rb', line 24 -def Not(matcher) - Not.new(matcher) +def Not(matcher) # rubocop:disable Naming/MethodName + Not.new(matcher) enddiff --git a/docs/Mocha/ParameterMatchers/AllOf.html b/docs/Mocha/ParameterMatchers/AllOf.html index e5ec38598..ae999c481 100644 --- a/docs/Mocha/ParameterMatchers/AllOf.html +++ b/docs/Mocha/ParameterMatchers/AllOf.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::AllOf - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/AnyOf.html b/docs/Mocha/ParameterMatchers/AnyOf.html index b2fbbdb4e..a7b7f3858 100644 --- a/docs/Mocha/ParameterMatchers/AnyOf.html +++ b/docs/Mocha/ParameterMatchers/AnyOf.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::AnyOf - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/AnyParameters.html b/docs/Mocha/ParameterMatchers/AnyParameters.html index 92d3dc5f3..e535c0ce0 100644 --- a/docs/Mocha/ParameterMatchers/AnyParameters.html +++ b/docs/Mocha/ParameterMatchers/AnyParameters.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::AnyParameters - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/Anything.html b/docs/Mocha/ParameterMatchers/Anything.html index bd5b3f0d7..504ed9a64 100644 --- a/docs/Mocha/ParameterMatchers/Anything.html +++ b/docs/Mocha/ParameterMatchers/Anything.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Anything - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/Base.html b/docs/Mocha/ParameterMatchers/Base.html index bfb919a3e..059593ef9 100644 --- a/docs/Mocha/ParameterMatchers/Base.html +++ b/docs/Mocha/ParameterMatchers/Base.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Base - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -431,7 +431,7 @@diff --git a/docs/Mocha/ParameterMatchers/Equals.html b/docs/Mocha/ParameterMatchers/Equals.html index 911af4efb..f232d1a8f 100644 --- a/docs/Mocha/ParameterMatchers/Equals.html +++ b/docs/Mocha/ParameterMatchers/Equals.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Equals - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/EquivalentUri.html b/docs/Mocha/ParameterMatchers/EquivalentUri.html index f2d27f7d6..21d54ac47 100644 --- a/docs/Mocha/ParameterMatchers/EquivalentUri.html +++ b/docs/Mocha/ParameterMatchers/EquivalentUri.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::EquivalentUri - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/HasEntries.html b/docs/Mocha/ParameterMatchers/HasEntries.html index 8dfca553f..1cad49877 100644 --- a/docs/Mocha/ParameterMatchers/HasEntries.html +++ b/docs/Mocha/ParameterMatchers/HasEntries.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasEntries - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/HasEntry.html b/docs/Mocha/ParameterMatchers/HasEntry.html index eecc19d66..2c7cb4004 100644 --- a/docs/Mocha/ParameterMatchers/HasEntry.html +++ b/docs/Mocha/ParameterMatchers/HasEntry.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasEntry - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/HasKey.html b/docs/Mocha/ParameterMatchers/HasKey.html index fb4c54f2c..63556171b 100644 --- a/docs/Mocha/ParameterMatchers/HasKey.html +++ b/docs/Mocha/ParameterMatchers/HasKey.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasKey - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/HasValue.html b/docs/Mocha/ParameterMatchers/HasValue.html index eacae4208..f6fb9149b 100644 --- a/docs/Mocha/ParameterMatchers/HasValue.html +++ b/docs/Mocha/ParameterMatchers/HasValue.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::HasValue - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/Includes.html b/docs/Mocha/ParameterMatchers/Includes.html index 4d2aa5df1..d851403ba 100644 --- a/docs/Mocha/ParameterMatchers/Includes.html +++ b/docs/Mocha/ParameterMatchers/Includes.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Includes - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/InstanceOf.html b/docs/Mocha/ParameterMatchers/InstanceOf.html index aedc318e7..83cc85bab 100644 --- a/docs/Mocha/ParameterMatchers/InstanceOf.html +++ b/docs/Mocha/ParameterMatchers/InstanceOf.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::InstanceOf - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/IsA.html b/docs/Mocha/ParameterMatchers/IsA.html index a7473ff0b..8ff276176 100644 --- a/docs/Mocha/ParameterMatchers/IsA.html +++ b/docs/Mocha/ParameterMatchers/IsA.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::IsA - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/KindOf.html b/docs/Mocha/ParameterMatchers/KindOf.html index fe6f17422..a9109bac3 100644 --- a/docs/Mocha/ParameterMatchers/KindOf.html +++ b/docs/Mocha/ParameterMatchers/KindOf.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::KindOf - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/Not.html b/docs/Mocha/ParameterMatchers/Not.html index 61e04e48b..5a648ec17 100644 --- a/docs/Mocha/ParameterMatchers/Not.html +++ b/docs/Mocha/ParameterMatchers/Not.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Not - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/Optionally.html b/docs/Mocha/ParameterMatchers/Optionally.html index 63cbafecd..ce9e3aa37 100644 --- a/docs/Mocha/ParameterMatchers/Optionally.html +++ b/docs/Mocha/ParameterMatchers/Optionally.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::Optionally - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/RegexpMatches.html b/docs/Mocha/ParameterMatchers/RegexpMatches.html index 871f2fe34..2dfb202ef 100644 --- a/docs/Mocha/ParameterMatchers/RegexpMatches.html +++ b/docs/Mocha/ParameterMatchers/RegexpMatches.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::RegexpMatches - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/RespondsWith.html b/docs/Mocha/ParameterMatchers/RespondsWith.html index 320ff5960..4370d2f42 100644 --- a/docs/Mocha/ParameterMatchers/RespondsWith.html +++ b/docs/Mocha/ParameterMatchers/RespondsWith.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::RespondsWith - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/ParameterMatchers/YamlEquivalent.html b/docs/Mocha/ParameterMatchers/YamlEquivalent.html index ae5ca5ac6..0274efa68 100644 --- a/docs/Mocha/ParameterMatchers/YamlEquivalent.html +++ b/docs/Mocha/ParameterMatchers/YamlEquivalent.html @@ -6,7 +6,7 @@
Class: Mocha::ParameterMatchers::YamlEquivalent - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -143,7 +143,7 @@Methods inherited from - Generated on Tue Dec 17 12:49:36 2019 by + Generated on Sat Jan 4 17:36:48 2020 by yard 0.9.20 (ruby-2.6.5). diff --git a/docs/Mocha/Sequence.html b/docs/Mocha/Sequence.html index ee40e75c3..c4ffc7f29 100644 --- a/docs/Mocha/Sequence.html +++ b/docs/Mocha/Sequence.html @@ -6,7 +6,7 @@
Class: Mocha::Sequence - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -139,7 +139,7 @@Overview
diff --git a/docs/Mocha/StateMachine.html b/docs/Mocha/StateMachine.html index e448f9bb4..73cd80db4 100644 --- a/docs/Mocha/StateMachine.html +++ b/docs/Mocha/StateMachine.html @@ -6,7 +6,7 @@Class: Mocha::StateMachine - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -394,7 +394,7 @@
diff --git a/docs/Mocha/StateMachine/State.html b/docs/Mocha/StateMachine/State.html index e1b263128..ffec7dbc0 100644 --- a/docs/Mocha/StateMachine/State.html +++ b/docs/Mocha/StateMachine/State.html @@ -6,7 +6,7 @@-@@ -415,8 +415,8 @@Provides a mechanism to determine whether the Mocha::StateMachine is not in the state specified by
+state_name
at some point in the future. rubocop:disable Naming/PredicateNameProvides a mechanism to determine whether the Mocha::StateMachine is not in the state specified by
state_name
at some point in the future.
@@ -517,7 +517,7 @@ # File 'lib/mocha/state_machine.rb', line 88 -def is_not(state_name) - StatePredicate.new(self, state_name) +def is_not(state_name) # rubocop:disable Naming/PredicateName + StatePredicate.new(self, state_name) end
Class: Mocha::StateMachine::State - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -130,7 +130,7 @@Overview
diff --git a/docs/Mocha/StateMachine/StatePredicate.html b/docs/Mocha/StateMachine/StatePredicate.html index 1d45c4904..194ae3e9a 100644 --- a/docs/Mocha/StateMachine/StatePredicate.html +++ b/docs/Mocha/StateMachine/StatePredicate.html @@ -6,7 +6,7 @@Class: Mocha::StateMachine::StatePredicate - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -130,7 +130,7 @@Overview
diff --git a/docs/Mocha/StubbingError.html b/docs/Mocha/StubbingError.html index cc91a5ae2..fdbb76013 100644 --- a/docs/Mocha/StubbingError.html +++ b/docs/Mocha/StubbingError.html @@ -6,7 +6,7 @@Class: Mocha::StubbingError - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -140,7 +140,7 @@Overview
diff --git a/docs/_index.html b/docs/_index.html index e99d050f5..41bacbd3c 100644 --- a/docs/_index.html +++ b/docs/_index.html @@ -4,7 +4,7 @@- Mocha 1.11.1 + Mocha 1.11.2 @@ -52,7 +52,7 @@ -diff --git a/docs/file.README.html b/docs/file.README.html index cd0f467f7..1e3395690 100644 --- a/docs/file.README.html +++ b/docs/file.README.html @@ -6,7 +6,7 @@Mocha 1.11.1
+diff --git a/docs/file.MIT-LICENSE.html b/docs/file.MIT-LICENSE.html index 813e72450..b82a05c62 100644 --- a/docs/file.MIT-LICENSE.html +++ b/docs/file.MIT-LICENSE.html @@ -6,7 +6,7 @@Mocha 1.11.2
diff --git a/docs/file.COPYING.html b/docs/file.COPYING.html index e7412ae55..af24301c1 100644 --- a/docs/file.COPYING.html +++ b/docs/file.COPYING.html @@ -6,7 +6,7 @@Alphabetic Index
@@ -509,7 +509,7 @@Namespace Listing A-Z
File: COPYING - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -71,7 +71,7 @@File: MIT-LICENSE - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -75,7 +75,7 @@File: README - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -438,7 +438,7 @@License
diff --git a/docs/file.RELEASE.html b/docs/file.RELEASE.html index 47054e194..c48354ebd 100644 --- a/docs/file.RELEASE.html +++ b/docs/file.RELEASE.html @@ -6,7 +6,7 @@File: RELEASE - — Mocha 1.11.1 + — Mocha 1.11.2 @@ -59,6 +59,24 @@diff --git a/docs/frames.html b/docs/frames.html index 2b7b65e29..755412b80 100644 --- a/docs/frames.html +++ b/docs/frames.html @@ -2,7 +2,7 @@ -Release Notes
+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
@@ -1000,7 +1018,7 @@0.1.1
Mocha 1.11.1 +Mocha 1.11.2