mocha 1.10.2 → 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/.yardopts +1 -0
- data/RELEASE.md +18 -0
- data/Rakefile +1 -4
- data/docs/Mocha.html +2 -2
- data/docs/Mocha/API.html +2 -2
- data/docs/Mocha/ClassMethods.html +2 -2
- data/docs/Mocha/Configuration.html +2 -2
- data/docs/Mocha/Expectation.html +284 -76
- data/docs/Mocha/ExpectationError.html +2 -2
- data/docs/Mocha/ExpectationErrorFactory.html +2 -2
- data/docs/Mocha/Hooks.html +2 -2
- data/docs/Mocha/Integration.html +2 -2
- data/docs/Mocha/Integration/MiniTest.html +2 -2
- data/docs/Mocha/Integration/MiniTest/Adapter.html +2 -2
- data/docs/Mocha/Integration/TestUnit.html +2 -2
- data/docs/Mocha/Integration/TestUnit/Adapter.html +2 -2
- data/docs/Mocha/Mock.html +2 -2
- data/docs/Mocha/ObjectMethods.html +2 -2
- data/docs/Mocha/ParameterMatchers.html +2 -2
- data/docs/Mocha/ParameterMatchers/AllOf.html +2 -2
- data/docs/Mocha/ParameterMatchers/AnyOf.html +2 -2
- data/docs/Mocha/ParameterMatchers/AnyParameters.html +2 -2
- data/docs/Mocha/ParameterMatchers/Anything.html +2 -2
- data/docs/Mocha/ParameterMatchers/Base.html +2 -2
- data/docs/Mocha/ParameterMatchers/Equals.html +2 -2
- data/docs/Mocha/ParameterMatchers/EquivalentUri.html +2 -2
- data/docs/Mocha/ParameterMatchers/HasEntries.html +2 -2
- data/docs/Mocha/ParameterMatchers/HasEntry.html +2 -2
- data/docs/Mocha/ParameterMatchers/HasKey.html +2 -2
- data/docs/Mocha/ParameterMatchers/HasValue.html +2 -2
- data/docs/Mocha/ParameterMatchers/Includes.html +2 -2
- data/docs/Mocha/ParameterMatchers/InstanceOf.html +2 -2
- data/docs/Mocha/ParameterMatchers/IsA.html +2 -2
- data/docs/Mocha/ParameterMatchers/KindOf.html +2 -2
- data/docs/Mocha/ParameterMatchers/Not.html +2 -2
- data/docs/Mocha/ParameterMatchers/Optionally.html +2 -2
- data/docs/Mocha/ParameterMatchers/RegexpMatches.html +2 -2
- data/docs/Mocha/ParameterMatchers/RespondsWith.html +2 -2
- data/docs/Mocha/ParameterMatchers/YamlEquivalent.html +2 -2
- data/docs/Mocha/Sequence.html +2 -2
- data/docs/Mocha/StateMachine.html +2 -2
- data/docs/Mocha/StateMachine/State.html +2 -2
- data/docs/Mocha/StateMachine/StatePredicate.html +2 -2
- data/docs/Mocha/StubbingError.html +2 -2
- data/docs/_index.html +3 -3
- data/docs/file.COPYING.html +2 -2
- data/docs/file.MIT-LICENSE.html +2 -2
- data/docs/file.README.html +2 -2
- data/docs/file.RELEASE.html +30 -2
- data/docs/frames.html +1 -1
- data/docs/index.html +2 -2
- data/docs/method_list.html +20 -4
- data/docs/top-level-namespace.html +2 -2
- data/lib/mocha/block_matcher.rb +31 -0
- data/lib/mocha/expectation.rb +47 -6
- data/lib/mocha/invocation.rb +9 -5
- data/lib/mocha/version.rb +1 -1
- data/lib/mocha/yield_parameters.rb +5 -11
- data/test/acceptance/acceptance_test_helper.rb +1 -0
- data/test/acceptance/display_matching_invocations_alongside_expectations_test.rb +5 -5
- data/test/acceptance/failure_messages_test.rb +16 -0
- data/test/acceptance/multiple_yielding_test.rb +56 -0
- data/test/acceptance/yielding_test.rb +78 -0
- data/test/unit/expectation_test.rb +15 -1
- data/test/unit/yield_parameters_test.rb +35 -53
- metadata +6 -8
- data/lib/mocha/multiple_yields.rb +0 -15
- data/lib/mocha/no_yields.rb +0 -5
- data/lib/mocha/single_yield.rb +0 -13
- 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
|
Exception: Mocha::ExpectationError
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -142,7 +142,7 @@
|
|
142
142
|
</div>
|
143
143
|
|
144
144
|
<div id="footer">
|
145
|
-
Generated on
|
145
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
146
146
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
147
147
|
0.9.20 (ruby-2.6.5).
|
148
148
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::ExpectationErrorFactory
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -250,7 +250,7 @@
|
|
250
250
|
</div>
|
251
251
|
|
252
252
|
<div id="footer">
|
253
|
-
Generated on
|
253
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
254
254
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
255
255
|
0.9.20 (ruby-2.6.5).
|
256
256
|
</div>
|
data/docs/Mocha/Hooks.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mocha::Hooks
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -360,7 +360,7 @@
|
|
360
360
|
</div>
|
361
361
|
|
362
362
|
<div id="footer">
|
363
|
-
Generated on
|
363
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
364
364
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
365
365
|
0.9.20 (ruby-2.6.5).
|
366
366
|
</div>
|
data/docs/Mocha/Integration.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mocha::Integration
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -115,7 +115,7 @@
|
|
115
115
|
</div>
|
116
116
|
|
117
117
|
<div id="footer">
|
118
|
-
Generated on
|
118
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
119
119
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
120
120
|
0.9.20 (ruby-2.6.5).
|
121
121
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mocha::Integration::MiniTest
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -113,7 +113,7 @@
|
|
113
113
|
</div>
|
114
114
|
|
115
115
|
<div id="footer">
|
116
|
-
Generated on
|
116
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
117
117
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
118
118
|
0.9.20 (ruby-2.6.5).
|
119
119
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mocha::Integration::MiniTest::Adapter
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -154,7 +154,7 @@
|
|
154
154
|
</div>
|
155
155
|
|
156
156
|
<div id="footer">
|
157
|
-
Generated on
|
157
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
158
158
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
159
159
|
0.9.20 (ruby-2.6.5).
|
160
160
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mocha::Integration::TestUnit
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -113,7 +113,7 @@
|
|
113
113
|
</div>
|
114
114
|
|
115
115
|
<div id="footer">
|
116
|
-
Generated on
|
116
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
117
117
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
118
118
|
0.9.20 (ruby-2.6.5).
|
119
119
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mocha::Integration::TestUnit::Adapter
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -154,7 +154,7 @@
|
|
154
154
|
</div>
|
155
155
|
|
156
156
|
<div id="footer">
|
157
|
-
Generated on
|
157
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
158
158
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
159
159
|
0.9.20 (ruby-2.6.5).
|
160
160
|
</div>
|
data/docs/Mocha/Mock.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mocha::Mock
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -1227,7 +1227,7 @@ object.stubbed_method # => unexpected invocation: #<Mock:mock>.stubbed_
|
|
1227
1227
|
</div>
|
1228
1228
|
|
1229
1229
|
<div id="footer">
|
1230
|
-
Generated on
|
1230
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
1231
1231
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1232
1232
|
0.9.20 (ruby-2.6.5).
|
1233
1233
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mocha::ObjectMethods
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -755,7 +755,7 @@
|
|
755
755
|
</div>
|
756
756
|
|
757
757
|
<div id="footer">
|
758
|
-
Generated on
|
758
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
759
759
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
760
760
|
0.9.20 (ruby-2.6.5).
|
761
761
|
</div>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mocha::ParameterMatchers
|
8
8
|
|
9
|
-
— Mocha 1.
|
9
|
+
— Mocha 1.11.0
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -2951,7 +2951,7 @@ object.method_1('http://example.com/foo?a=1&b=3')
|
|
2951
2951
|
</div>
|
2952
2952
|
|
2953
2953
|
<div id="footer">
|
2954
|
-
Generated on
|
2954
|
+
Generated on Mon Dec 16 18:49:51 2019 by
|
2955
2955
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2956
2956
|
0.9.20 (ruby-2.6.5).
|
2957
2957
|
</div>
|
@@ -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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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
|
|
@@ -431,7 +431,7 @@ object.run(:foo => 'foovalue', :bar => 'barvalue)</code></pre>
|
|
431
431
|
</div>
|
432
432
|
|
433
433
|
<div id="footer">
|
434
|
-
Generated on
|
434
|
+
Generated on Mon Dec 16 18:49:52 2019 by
|
435
435
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
436
436
|
0.9.20 (ruby-2.6.5).
|
437
437
|
</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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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
|
|
@@ -143,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</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,7 +143,7 @@
|
|
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
148
|
0.9.20 (ruby-2.6.5).
|
149
149
|
</div>
|