mocha 1.8.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +7 -30
- data/.yardopts +1 -0
- data/README.md +40 -13
- data/RELEASE.md +97 -0
- data/Rakefile +10 -7
- data/bin/build-matrix +1 -2
- data/docs/CNAME +1 -1
- data/docs/Mocha.html +132 -5
- data/docs/Mocha/API.html +437 -206
- data/docs/Mocha/ClassMethods.html +13 -16
- data/docs/Mocha/Configuration.html +1126 -227
- data/docs/Mocha/Expectation.html +420 -267
- data/docs/Mocha/ExpectationError.html +5 -10
- data/docs/Mocha/ExpectationErrorFactory.html +9 -18
- data/docs/Mocha/Hooks.html +12 -27
- data/docs/Mocha/Integration.html +3 -3
- data/docs/Mocha/Integration/MiniTest.html +3 -3
- data/docs/Mocha/Integration/MiniTest/Adapter.html +5 -6
- data/docs/Mocha/Integration/TestUnit.html +3 -3
- data/docs/Mocha/Integration/TestUnit/Adapter.html +5 -6
- data/docs/Mocha/Mock.html +202 -162
- data/docs/Mocha/ObjectMethods.html +121 -68
- data/docs/Mocha/ParameterMatchers.html +21 -109
- data/docs/Mocha/ParameterMatchers/AllOf.html +4 -5
- data/docs/Mocha/ParameterMatchers/AnyOf.html +4 -5
- data/docs/Mocha/ParameterMatchers/AnyParameters.html +3 -3
- data/docs/Mocha/ParameterMatchers/Anything.html +3 -3
- data/docs/Mocha/ParameterMatchers/Base.html +8 -15
- data/docs/Mocha/ParameterMatchers/Equals.html +4 -5
- data/docs/Mocha/ParameterMatchers/EquivalentUri.html +3 -3
- data/docs/Mocha/ParameterMatchers/HasEntries.html +4 -5
- data/docs/Mocha/ParameterMatchers/HasEntry.html +4 -5
- data/docs/Mocha/ParameterMatchers/HasKey.html +4 -5
- data/docs/Mocha/ParameterMatchers/HasValue.html +4 -5
- data/docs/Mocha/ParameterMatchers/Includes.html +4 -5
- data/docs/Mocha/ParameterMatchers/InstanceOf.html +4 -5
- data/docs/Mocha/ParameterMatchers/IsA.html +3 -3
- data/docs/Mocha/ParameterMatchers/KindOf.html +4 -5
- data/docs/Mocha/ParameterMatchers/Not.html +4 -5
- data/docs/Mocha/ParameterMatchers/Optionally.html +3 -3
- data/docs/Mocha/ParameterMatchers/RegexpMatches.html +4 -5
- data/docs/Mocha/ParameterMatchers/RespondsWith.html +4 -5
- data/docs/Mocha/ParameterMatchers/YamlEquivalent.html +4 -5
- data/docs/Mocha/Sequence.html +3 -3
- data/docs/Mocha/StateMachine.html +13 -25
- data/docs/Mocha/StateMachine/State.html +4 -5
- data/docs/Mocha/StateMachine/StatePredicate.html +4 -5
- data/docs/Mocha/StubbingError.html +3 -3
- data/docs/_index.html +4 -22
- data/docs/class_list.html +1 -1
- data/docs/file.COPYING.html +3 -3
- data/docs/file.MIT-LICENSE.html +3 -3
- data/docs/file.README.html +46 -16
- data/docs/file.RELEASE.html +130 -3
- data/docs/frames.html +1 -1
- data/docs/index.html +46 -16
- data/docs/js/app.js +11 -0
- data/docs/method_list.html +117 -37
- data/docs/top-level-namespace.html +3 -3
- data/gemfiles/Gemfile.minitest.5.11.3 +7 -0
- data/init.rb +1 -3
- data/lib/mocha.rb +8 -0
- data/lib/mocha/any_instance_method.rb +11 -53
- data/lib/mocha/api.rb +120 -56
- data/lib/mocha/block_matcher.rb +31 -0
- data/lib/mocha/cardinality.rb +26 -11
- data/lib/mocha/class_methods.rb +17 -15
- data/lib/mocha/configuration.rb +351 -67
- data/lib/mocha/deprecation.rb +2 -1
- data/lib/mocha/detection/test_unit.rb +1 -3
- data/lib/mocha/exception_raiser.rb +2 -1
- data/lib/mocha/expectation.rb +102 -63
- data/lib/mocha/expectation_error.rb +1 -3
- data/lib/mocha/expectation_list.rb +6 -6
- data/lib/mocha/inspect.rb +28 -26
- data/lib/mocha/instance_method.rb +19 -2
- data/lib/mocha/integration.rb +1 -3
- data/lib/mocha/integration/mini_test.rb +7 -0
- data/lib/mocha/integration/test_unit.rb +7 -0
- data/lib/mocha/invocation.rb +77 -0
- data/lib/mocha/macos_version.rb +5 -0
- data/lib/mocha/minitest.rb +6 -1
- data/lib/mocha/mock.rb +46 -31
- data/lib/mocha/mockery.rb +25 -61
- data/lib/mocha/names.rb +1 -1
- data/lib/mocha/object_methods.rb +13 -19
- data/lib/mocha/parameter_matchers.rb +1 -1
- data/lib/mocha/parameter_matchers/all_of.rb +1 -1
- data/lib/mocha/parameter_matchers/any_of.rb +1 -1
- data/lib/mocha/parameter_matchers/equivalent_uri.rb +0 -9
- data/lib/mocha/parameter_matchers/includes.rb +2 -0
- data/lib/mocha/parameter_matchers/instance_methods.rb +18 -0
- data/lib/mocha/raised_exception.rb +11 -0
- data/lib/mocha/return_values.rb +3 -3
- data/lib/mocha/setup.rb +5 -0
- data/lib/mocha/single_return_value.rb +2 -1
- data/lib/mocha/singleton_class.rb +9 -0
- data/lib/mocha/stubbed_method.rb +127 -0
- data/lib/mocha/test_unit.rb +6 -1
- data/lib/mocha/thrower.rb +2 -1
- data/lib/mocha/thrown_object.rb +12 -0
- data/lib/mocha/version.rb +1 -1
- data/lib/mocha/yield_parameters.rb +5 -11
- data/mocha.gemspec +1 -3
- data/test/acceptance/acceptance_test_helper.rb +7 -0
- data/test/acceptance/bug_18914_test.rb +0 -1
- data/test/acceptance/bug_21465_test.rb +0 -1
- data/test/acceptance/bug_21563_test.rb +0 -1
- data/test/acceptance/display_matching_invocations_alongside_expectations_test.rb +69 -0
- data/test/acceptance/exception_rescue_test.rb +1 -2
- data/test/acceptance/expectations_on_multiple_methods_test.rb +0 -1
- data/test/acceptance/expected_invocation_count_test.rb +2 -3
- data/test/acceptance/failure_messages_test.rb +16 -1
- data/test/acceptance/issue_272_test.rb +1 -2
- data/test/acceptance/issue_65_test.rb +0 -1
- data/test/acceptance/issue_70_test.rb +0 -1
- data/test/acceptance/mocha_example_test.rb +0 -1
- data/test/acceptance/mocha_test_result_test.rb +0 -1
- data/test/acceptance/mock_built_with_first_argument_type_being_string_test.rb +99 -0
- data/test/acceptance/mock_test.rb +47 -6
- data/test/acceptance/mocked_methods_dispatch_test.rb +0 -1
- data/test/acceptance/multiple_expectations_failure_message_test.rb +0 -1
- data/test/acceptance/multiple_yielding_test.rb +56 -0
- data/test/acceptance/optional_parameters_test.rb +0 -1
- data/test/acceptance/parameter_matcher_test.rb +0 -1
- data/test/acceptance/partial_mocks_test.rb +0 -1
- data/test/acceptance/prepend_test.rb +0 -1
- data/test/acceptance/prevent_use_of_mocha_outside_test_test.rb +0 -1
- data/test/acceptance/raise_exception_test.rb +0 -1
- data/test/acceptance/return_value_test.rb +0 -1
- data/test/acceptance/sequence_test.rb +0 -1
- data/test/acceptance/states_test.rb +0 -1
- data/test/acceptance/stub_any_instance_method_defined_on_superclass_test.rb +1 -2
- data/test/acceptance/stub_any_instance_method_test.rb +20 -1
- data/test/acceptance/stub_class_method_defined_on_active_record_association_proxy_test.rb +0 -1
- data/test/acceptance/stub_class_method_defined_on_class_test.rb +0 -1
- data/test/acceptance/stub_class_method_defined_on_module_test.rb +0 -1
- data/test/acceptance/stub_class_method_defined_on_superclass_test.rb +1 -2
- data/test/acceptance/stub_everything_test.rb +0 -1
- data/test/acceptance/stub_instance_method_defined_on_active_record_association_proxy_test.rb +0 -1
- data/test/acceptance/stub_instance_method_defined_on_class_and_aliased_test.rb +0 -1
- data/test/acceptance/stub_instance_method_defined_on_class_test.rb +0 -1
- data/test/acceptance/stub_instance_method_defined_on_kernel_module_test.rb +0 -1
- data/test/acceptance/stub_instance_method_defined_on_module_test.rb +0 -1
- data/test/acceptance/stub_instance_method_defined_on_object_class_test.rb +0 -1
- data/test/acceptance/stub_instance_method_defined_on_singleton_class_test.rb +0 -1
- data/test/acceptance/stub_instance_method_defined_on_superclass_test.rb +0 -1
- data/test/acceptance/stub_method_defined_on_module_and_aliased_test.rb +0 -1
- data/test/acceptance/stub_module_method_test.rb +0 -1
- data/test/acceptance/stub_test.rb +0 -1
- data/test/acceptance/stubba_example_test.rb +0 -1
- data/test/acceptance/stubba_test_result_test.rb +0 -1
- data/test/acceptance/stubbing_error_backtrace_test.rb +4 -5
- data/test/acceptance/stubbing_frozen_object_test.rb +0 -1
- data/test/acceptance/stubbing_method_accepting_block_parameter_test.rb +0 -1
- data/test/acceptance/stubbing_method_unnecessarily_test.rb +5 -5
- data/test/acceptance/stubbing_nil_test.rb +5 -5
- data/test/acceptance/stubbing_non_existent_any_instance_method_test.rb +27 -11
- data/test/acceptance/stubbing_non_existent_class_method_test.rb +11 -11
- data/test/acceptance/stubbing_non_existent_instance_method_test.rb +11 -11
- data/test/acceptance/stubbing_non_public_any_instance_method_test.rb +8 -8
- data/test/acceptance/stubbing_non_public_class_method_test.rb +9 -9
- data/test/acceptance/stubbing_non_public_instance_method_test.rb +9 -9
- data/test/acceptance/stubbing_on_non_mock_object_test.rb +5 -5
- data/test/acceptance/stubbing_same_class_method_on_parent_and_child_classes_test.rb +0 -1
- data/test/acceptance/throw_test.rb +0 -1
- data/test/acceptance/unexpected_invocation_test.rb +0 -1
- data/test/acceptance/unstubbing_test.rb +0 -1
- data/test/acceptance/yielding_test.rb +78 -0
- data/test/integration/shared_tests.rb +5 -3
- data/test/method_definer.rb +11 -17
- data/test/test_runner.rb +2 -0
- data/test/unit/any_instance_method_test.rb +60 -35
- data/test/unit/cardinality_test.rb +41 -23
- data/test/unit/central_test.rb +0 -1
- data/test/unit/class_methods_test.rb +1 -1
- data/test/unit/configuration_test.rb +12 -12
- data/test/unit/exception_raiser_test.rb +10 -5
- data/test/unit/expectation_list_test.rb +13 -11
- data/test/unit/expectation_test.rb +117 -103
- data/test/unit/instance_method_test.rb +282 -0
- data/test/unit/mock_test.rb +28 -19
- data/test/unit/mockery_test.rb +8 -11
- data/test/unit/module_methods_test.rb +2 -3
- data/test/unit/object_inspect_test.rb +6 -4
- data/test/unit/object_methods_test.rb +3 -2
- data/test/unit/parameter_matchers/equivalent_uri_test.rb +0 -9
- data/test/unit/parameter_matchers/has_entries_test.rb +1 -1
- data/test/unit/parameter_matchers/has_entry_test.rb +1 -1
- data/test/unit/parameter_matchers/has_key_test.rb +1 -1
- data/test/unit/parameter_matchers/has_value_test.rb +1 -1
- data/test/unit/parameter_matchers/includes_test.rb +1 -1
- data/test/unit/parameter_matchers/responds_with_test.rb +1 -1
- data/test/unit/return_values_test.rb +25 -20
- data/test/unit/single_return_value_test.rb +6 -1
- data/test/unit/thrower_test.rb +7 -2
- data/test/unit/yield_parameters_test.rb +35 -53
- metadata +18 -35
- data/docs/Mocha/UnexpectedInvocation.html +0 -140
- data/lib/mocha/class_method.rb +0 -113
- data/lib/mocha/mini_test.rb +0 -5
- data/lib/mocha/module_method.rb +0 -6
- data/lib/mocha/module_methods.rb +0 -10
- data/lib/mocha/multiple_yields.rb +0 -15
- data/lib/mocha/no_yields.rb +0 -5
- data/lib/mocha/parameter_matchers/object.rb +0 -15
- data/lib/mocha/single_yield.rb +0 -13
- data/lib/mocha/standalone.rb +0 -4
- data/lib/mocha/unexpected_invocation.rb +0 -24
- data/lib/mocha_standalone.rb +0 -4
- data/test/acceptance/mock_with_initializer_block_test.rb +0 -56
- data/test/unit/class_method_test.rb +0 -254
- data/test/unit/multiple_yields_test.rb +0 -16
- data/test/unit/no_yields_test.rb +0 -16
- data/test/unit/single_yield_test.rb +0 -16
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::AllOf
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which combines a number of other matchers using a logical
|
108
|
-
AND.</p>
|
107
|
+
<p>Parameter matcher which combines a number of other matchers using a logical AND.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@ AND.</p>
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::AnyOf
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which combines a number of other matchers using a logical
|
108
|
-
OR.</p>
|
107
|
+
<p>Parameter matcher which combines a number of other matchers using a logical OR.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@ OR.</p>
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::AnyParameters
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -143,9 +143,9 @@
|
|
143
143
|
</div>
|
144
144
|
|
145
145
|
<div id="footer">
|
146
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
147
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
148
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
149
149
|
</div>
|
150
150
|
|
151
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::Anything
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -143,9 +143,9 @@
|
|
143
143
|
</div>
|
144
144
|
|
145
145
|
<div id="footer">
|
146
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
147
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
148
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
149
149
|
</div>
|
150
150
|
|
151
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::Base
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,10 +104,7 @@
|
|
104
104
|
<div class="note abstract">
|
105
105
|
<strong>This class is abstract.</strong>
|
106
106
|
<div class='inline'>
|
107
|
-
<p>Subclass and implement <code>#matches?</code> and
|
108
|
-
<code>#mocha_inspect</code> to define a custom matcher. Also add a suitably
|
109
|
-
named instance method to <span class='object_link'><a href="../ParameterMatchers.html" title="Mocha::ParameterMatchers (module)">Mocha::ParameterMatchers</a></span> to build an instance of the
|
110
|
-
new matcher c.f. <span class='object_link'><a href="../ParameterMatchers.html#equals-instance_method" title="Mocha::ParameterMatchers#equals (method)">#equals</a></span>.</p>
|
107
|
+
<p>Subclass and implement <code>#matches?</code> and <code>#mocha_inspect</code> to define a custom matcher. Also add a suitably named instance method to <span class='object_link'><a href="../ParameterMatchers.html" title="Mocha::ParameterMatchers (module)">Mocha::ParameterMatchers</a></span> to build an instance of the new matcher c.f. <span class='object_link'><a href="../ParameterMatchers.html#equals-instance_method" title="Mocha::ParameterMatchers#equals (method)">#equals</a></span>.</p>
|
111
108
|
</div>
|
112
109
|
</div>
|
113
110
|
|
@@ -207,11 +204,9 @@ new matcher c.f. <span class='object_link'><a href="../ParameterMatchers.html#eq
|
|
207
204
|
|
208
205
|
<p>A shorthand way of combining two matchers when both must match.</p>
|
209
206
|
|
210
|
-
<p>Returns a new <span class='object_link'><a href="AllOf.html" title="Mocha::ParameterMatchers::AllOf (class)">AllOf</a></span> parameter matcher combining two matchers using a
|
211
|
-
logical AND.</p>
|
207
|
+
<p>Returns a new <span class='object_link'><a href="AllOf.html" title="Mocha::ParameterMatchers::AllOf (class)">AllOf</a></span> parameter matcher combining two matchers using a logical AND.</p>
|
212
208
|
|
213
|
-
<p>This shorthand will not work with an implicit equals match. Instead, an
|
214
|
-
explicit <span class='object_link'><a href="Equals.html" title="Mocha::ParameterMatchers::Equals (class)">Equals</a></span> matcher should be used.</p>
|
209
|
+
<p>This shorthand will not work with an implicit equals match. Instead, an explicit <span class='object_link'><a href="Equals.html" title="Mocha::ParameterMatchers::Equals (class)">Equals</a></span> matcher should be used.</p>
|
215
210
|
|
216
211
|
|
217
212
|
</div>
|
@@ -318,11 +313,9 @@ object.run(:foo => 'foovalue', :bar => 'barvalue)</code></pre>
|
|
318
313
|
|
319
314
|
<p>A shorthand way of combining two matchers when at least one must match.</p>
|
320
315
|
|
321
|
-
<p>Returns a new <code>AnyOf</code> parameter matcher combining two matchers
|
322
|
-
using a logical OR.</p>
|
316
|
+
<p>Returns a new <code>AnyOf</code> parameter matcher combining two matchers using a logical OR.</p>
|
323
317
|
|
324
|
-
<p>This shorthand will not work with an implicit equals match. Instead, an
|
325
|
-
explicit <span class='object_link'><a href="Equals.html" title="Mocha::ParameterMatchers::Equals (class)">Equals</a></span> matcher should be used.</p>
|
318
|
+
<p>This shorthand will not work with an implicit equals match. Instead, an explicit <span class='object_link'><a href="Equals.html" title="Mocha::ParameterMatchers::Equals (class)">Equals</a></span> matcher should be used.</p>
|
326
319
|
|
327
320
|
|
328
321
|
</div>
|
@@ -438,9 +431,9 @@ explicit <span class='object_link'><a href="Equals.html" title="Mocha::Parameter
|
|
438
431
|
</div>
|
439
432
|
|
440
433
|
<div id="footer">
|
441
|
-
Generated on
|
434
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
442
435
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
443
|
-
0.9.
|
436
|
+
0.9.20 (ruby-2.6.5).
|
444
437
|
</div>
|
445
438
|
|
446
439
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::Equals
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which matches when actual parameter equals expected
|
108
|
-
value.</p>
|
107
|
+
<p>Parameter matcher which matches when actual parameter equals expected value.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@ value.</p>
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::EquivalentUri
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -143,9 +143,9 @@
|
|
143
143
|
</div>
|
144
144
|
|
145
145
|
<div id="footer">
|
146
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
147
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
148
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
149
149
|
</div>
|
150
150
|
|
151
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::HasEntries
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which matches when actual parameter contains all expected
|
108
|
-
<code>Hash</code> entries.</p>
|
107
|
+
<p>Parameter matcher which matches when actual parameter contains all expected <code>Hash</code> entries.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::HasEntry
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which matches when actual parameter contains expected
|
108
|
-
<code>Hash</code> entry.</p>
|
107
|
+
<p>Parameter matcher which matches when actual parameter contains expected <code>Hash</code> entry.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::HasKey
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which matches when actual parameter contains
|
108
|
-
<code>Hash</code> entry with expected key.</p>
|
107
|
+
<p>Parameter matcher which matches when actual parameter contains <code>Hash</code> entry with expected key.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::HasValue
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which matches when actual parameter contains
|
108
|
-
<code>Hash</code> entry with expected value.</p>
|
107
|
+
<p>Parameter matcher which matches when actual parameter contains <code>Hash</code> entry with expected value.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::Includes
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which matches when actual parameter includes expected
|
108
|
-
values.</p>
|
107
|
+
<p>Parameter matcher which matches when actual parameter includes expected values.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@ values.</p>
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::InstanceOf
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which matches when actual parameter is an instance of the
|
108
|
-
specified class.</p>
|
107
|
+
<p>Parameter matcher which matches when actual parameter is an instance of the specified class.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@ specified class.</p>
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::IsA
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -143,9 +143,9 @@
|
|
143
143
|
</div>
|
144
144
|
|
145
145
|
<div id="footer">
|
146
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
147
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
148
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
149
149
|
</div>
|
150
150
|
|
151
151
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ParameterMatchers::KindOf
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -104,8 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>Parameter matcher which matches when actual parameter is a kind of
|
108
|
-
specified class.</p>
|
107
|
+
<p>Parameter matcher which matches when actual parameter is a kind of specified class.</p>
|
109
108
|
|
110
109
|
|
111
110
|
</div>
|
@@ -144,9 +143,9 @@ specified class.</p>
|
|
144
143
|
</div>
|
145
144
|
|
146
145
|
<div id="footer">
|
147
|
-
Generated on
|
146
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
148
147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
|
-
0.9.
|
148
|
+
0.9.20 (ruby-2.6.5).
|
150
149
|
</div>
|
151
150
|
|
152
151
|
</div>
|