mocha 1.11.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/RELEASE.md +6 -0
  3. data/docs/Mocha.html +2 -2
  4. data/docs/Mocha/API.html +2 -2
  5. data/docs/Mocha/ClassMethods.html +2 -2
  6. data/docs/Mocha/Configuration.html +3 -3
  7. data/docs/Mocha/Expectation.html +2 -2
  8. data/docs/Mocha/ExpectationError.html +2 -2
  9. data/docs/Mocha/ExpectationErrorFactory.html +2 -2
  10. data/docs/Mocha/Hooks.html +2 -2
  11. data/docs/Mocha/Integration.html +2 -2
  12. data/docs/Mocha/Integration/MiniTest.html +2 -2
  13. data/docs/Mocha/Integration/MiniTest/Adapter.html +2 -2
  14. data/docs/Mocha/Integration/TestUnit.html +2 -2
  15. data/docs/Mocha/Integration/TestUnit/Adapter.html +2 -2
  16. data/docs/Mocha/Mock.html +2 -2
  17. data/docs/Mocha/ObjectMethods.html +2 -2
  18. data/docs/Mocha/ParameterMatchers.html +2 -2
  19. data/docs/Mocha/ParameterMatchers/AllOf.html +2 -2
  20. data/docs/Mocha/ParameterMatchers/AnyOf.html +2 -2
  21. data/docs/Mocha/ParameterMatchers/AnyParameters.html +2 -2
  22. data/docs/Mocha/ParameterMatchers/Anything.html +2 -2
  23. data/docs/Mocha/ParameterMatchers/Base.html +2 -2
  24. data/docs/Mocha/ParameterMatchers/Equals.html +2 -2
  25. data/docs/Mocha/ParameterMatchers/EquivalentUri.html +2 -2
  26. data/docs/Mocha/ParameterMatchers/HasEntries.html +2 -2
  27. data/docs/Mocha/ParameterMatchers/HasEntry.html +2 -2
  28. data/docs/Mocha/ParameterMatchers/HasKey.html +2 -2
  29. data/docs/Mocha/ParameterMatchers/HasValue.html +2 -2
  30. data/docs/Mocha/ParameterMatchers/Includes.html +2 -2
  31. data/docs/Mocha/ParameterMatchers/InstanceOf.html +2 -2
  32. data/docs/Mocha/ParameterMatchers/IsA.html +2 -2
  33. data/docs/Mocha/ParameterMatchers/KindOf.html +2 -2
  34. data/docs/Mocha/ParameterMatchers/Not.html +2 -2
  35. data/docs/Mocha/ParameterMatchers/Optionally.html +2 -2
  36. data/docs/Mocha/ParameterMatchers/RegexpMatches.html +2 -2
  37. data/docs/Mocha/ParameterMatchers/RespondsWith.html +2 -2
  38. data/docs/Mocha/ParameterMatchers/YamlEquivalent.html +2 -2
  39. data/docs/Mocha/Sequence.html +2 -2
  40. data/docs/Mocha/StateMachine.html +2 -2
  41. data/docs/Mocha/StateMachine/State.html +2 -2
  42. data/docs/Mocha/StateMachine/StatePredicate.html +2 -2
  43. data/docs/Mocha/StubbingError.html +2 -2
  44. data/docs/_index.html +3 -3
  45. data/docs/file.COPYING.html +2 -2
  46. data/docs/file.MIT-LICENSE.html +2 -2
  47. data/docs/file.README.html +2 -2
  48. data/docs/file.RELEASE.html +10 -2
  49. data/docs/frames.html +1 -1
  50. data/docs/index.html +2 -2
  51. data/docs/top-level-namespace.html +2 -2
  52. data/lib/mocha/configuration.rb +2 -2
  53. data/lib/mocha/version.rb +1 -1
  54. data/test/acceptance/mock_built_with_first_argument_type_being_string_test.rb +0 -1
  55. data/test/acceptance/mock_test.rb +28 -12
  56. data/test/acceptance/multiple_yielding_test.rb +6 -3
  57. data/test/acceptance/yielding_test.rb +5 -3
  58. data/test/unit/expectation_test.rb +10 -12
  59. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de1adbcbd8913b597601bdb8f9b028ee9ecc4be3bb61aadb2cd6afa959e34262
4
- data.tar.gz: bca0a0766a125de6bb4a03b73416c6801435fc7587ce68eedd09ca883e48613b
3
+ metadata.gz: c4d2242a81b567af96c5418bb54a86e5c7a4b0d2505c5263734afb920c9f0075
4
+ data.tar.gz: 657404b8cd42ac3430f32f26fab952c0cf55c7f63489343fd81243f5a2eb9462
5
5
  SHA512:
6
- metadata.gz: 04d916cde854d9b112ca1130d6933e8fc4f86ef0d95ca3d857ddd33b1992173f6d735463caaacaa6305d42eb22dd8e3e445cc9eabf3071434e0d6af58923710d
7
- data.tar.gz: 18d7cc9adc53c84c2f26f3c1b32069678eb394791cadfed2986696f0ecdca29223c787f22e6f22f54c6a534969f117af3ddfe075598647ad4afc0f57aac1d473
6
+ metadata.gz: 511a89f31cd9389de64d6a690d86abb8126e2290032aadcab124bf5b6947e27f848b131e41d1dd6f87d1b71758e6e76e26e6818325e409ef58ab09087a45f901
7
+ data.tar.gz: a138d451d8676ac8c108a8fc583a1c8f100bc66e8a2bc864cef020d7d05108710221c9e4b54b1f0e25959b66af169fab4f277fa4a6570de958fa996ae1581ecc
data/RELEASE.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release Notes
2
2
 
3
+ ## 1.11.1
4
+
5
+ ### External changes
6
+
7
+ * 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)
8
+
3
9
  ## 1.11.0
4
10
 
5
11
  ### External changes
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -244,7 +244,7 @@
244
244
  </div>
245
245
 
246
246
  <div id="footer">
247
- Generated on Mon Dec 16 18:49:50 2019 by
247
+ Generated on Tue Dec 17 12:49:35 2019 by
248
248
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
249
249
  0.9.20 (ruby-2.6.5).
250
250
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::API
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -1277,7 +1277,7 @@
1277
1277
  </div>
1278
1278
 
1279
1279
  <div id="footer">
1280
- Generated on Mon Dec 16 18:49:51 2019 by
1280
+ Generated on Tue Dec 17 12:49:35 2019 by
1281
1281
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1282
1282
  0.9.20 (ruby-2.6.5).
1283
1283
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::ClassMethods
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -254,7 +254,7 @@
254
254
  </div>
255
255
 
256
256
  <div id="footer">
257
- Generated on Mon Dec 16 18:49:51 2019 by
257
+ Generated on Tue Dec 17 12:49:35 2019 by
258
258
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
259
259
  0.9.20 (ruby-2.6.5).
260
260
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Configuration
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -1057,7 +1057,7 @@ unsatisfied expectations:
1057
1057
 
1058
1058
  &mdash;
1059
1059
  <div class='inline'>
1060
- <p><code>true</code> to reinstate undocumented behaviour; disabled by default.</p>
1060
+ <p><code>true</code> to reinstate undocumented behaviour; enabled by default.</p>
1061
1061
  </div>
1062
1062
 
1063
1063
  </li>
@@ -1515,7 +1515,7 @@ unsatisfied expectations:
1515
1515
  </div>
1516
1516
 
1517
1517
  <div id="footer">
1518
- Generated on Mon Dec 16 18:49:52 2019 by
1518
+ Generated on Tue Dec 17 12:49:37 2019 by
1519
1519
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1520
1520
  0.9.20 (ruby-2.6.5).
1521
1521
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Expectation
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -2852,7 +2852,7 @@
2852
2852
  </div>
2853
2853
 
2854
2854
  <div id="footer">
2855
- Generated on Mon Dec 16 18:49:51 2019 by
2855
+ Generated on Tue Dec 17 12:49:36 2019 by
2856
2856
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2857
2857
  0.9.20 (ruby-2.6.5).
2858
2858
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: Mocha::ExpectationError
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -142,7 +142,7 @@
142
142
  </div>
143
143
 
144
144
  <div id="footer">
145
- Generated on Mon Dec 16 18:49:52 2019 by
145
+ Generated on Tue Dec 17 12:49:37 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -250,7 +250,7 @@
250
250
  </div>
251
251
 
252
252
  <div id="footer">
253
- Generated on Mon Dec 16 18:49:52 2019 by
253
+ Generated on Tue Dec 17 12:49:37 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>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::Hooks
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -360,7 +360,7 @@
360
360
  </div>
361
361
 
362
362
  <div id="footer">
363
- Generated on Mon Dec 16 18:49:51 2019 by
363
+ Generated on Tue Dec 17 12:49:35 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>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::Integration
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -115,7 +115,7 @@
115
115
  </div>
116
116
 
117
117
  <div id="footer">
118
- Generated on Mon Dec 16 18:49:51 2019 by
118
+ Generated on Tue Dec 17 12:49:35 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -113,7 +113,7 @@
113
113
  </div>
114
114
 
115
115
  <div id="footer">
116
- Generated on Mon Dec 16 18:49:51 2019 by
116
+ Generated on Tue Dec 17 12:49:35 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -154,7 +154,7 @@
154
154
  </div>
155
155
 
156
156
  <div id="footer">
157
- Generated on Mon Dec 16 18:49:51 2019 by
157
+ Generated on Tue Dec 17 12:49:35 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -113,7 +113,7 @@
113
113
  </div>
114
114
 
115
115
  <div id="footer">
116
- Generated on Mon Dec 16 18:49:51 2019 by
116
+ Generated on Tue Dec 17 12:49:35 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -154,7 +154,7 @@
154
154
  </div>
155
155
 
156
156
  <div id="footer">
157
- Generated on Mon Dec 16 18:49:51 2019 by
157
+ Generated on Tue Dec 17 12:49:35 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
  Class: Mocha::Mock
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -1227,7 +1227,7 @@ object.stubbed_method # =&gt; unexpected invocation: #&lt;Mock:mock&gt;.stubbed_
1227
1227
  </div>
1228
1228
 
1229
1229
  <div id="footer">
1230
- Generated on Mon Dec 16 18:49:51 2019 by
1230
+ Generated on Tue Dec 17 12:49:35 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -755,7 +755,7 @@
755
755
  </div>
756
756
 
757
757
  <div id="footer">
758
- Generated on Mon Dec 16 18:49:51 2019 by
758
+ Generated on Tue Dec 17 12:49:35 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -2951,7 +2951,7 @@ object.method_1(&#39;http://example.com/foo?a=1&amp;b=3&#39;)
2951
2951
  </div>
2952
2952
 
2953
2953
  <div id="footer">
2954
- Generated on Mon Dec 16 18:49:51 2019 by
2954
+ Generated on Tue Dec 17 12:49:35 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -431,7 +431,7 @@ object.run(:foo =&gt; &#39;foovalue&#39;, :bar =&gt; &#39;barvalue)</code></pre>
431
431
  </div>
432
432
 
433
433
  <div id="footer">
434
- Generated on Mon Dec 16 18:49:52 2019 by
434
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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::KindOf
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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::Not
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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::Optionally
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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::RegexpMatches
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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::RespondsWith
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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::YamlEquivalent
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -143,7 +143,7 @@
143
143
  </div>
144
144
 
145
145
  <div id="footer">
146
- Generated on Mon Dec 16 18:49:52 2019 by
146
+ Generated on Tue Dec 17 12:49:36 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::Sequence
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -139,7 +139,7 @@
139
139
  </div>
140
140
 
141
141
  <div id="footer">
142
- Generated on Mon Dec 16 18:49:52 2019 by
142
+ Generated on Tue Dec 17 12:49:36 2019 by
143
143
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
144
144
  0.9.20 (ruby-2.6.5).
145
145
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::StateMachine
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -517,7 +517,7 @@
517
517
  </div>
518
518
 
519
519
  <div id="footer">
520
- Generated on Mon Dec 16 18:49:52 2019 by
520
+ Generated on Tue Dec 17 12:49:36 2019 by
521
521
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
522
522
  0.9.20 (ruby-2.6.5).
523
523
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::StateMachine::State
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -130,7 +130,7 @@
130
130
  </div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Mon Dec 16 18:49:52 2019 by
133
+ Generated on Tue Dec 17 12:49:36 2019 by
134
134
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
135
  0.9.20 (ruby-2.6.5).
136
136
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::StateMachine::StatePredicate
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -130,7 +130,7 @@
130
130
  </div>
131
131
 
132
132
  <div id="footer">
133
- Generated on Mon Dec 16 18:49:52 2019 by
133
+ Generated on Tue Dec 17 12:49:36 2019 by
134
134
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
135
135
  0.9.20 (ruby-2.6.5).
136
136
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::StubbingError
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -140,7 +140,7 @@
140
140
  </div>
141
141
 
142
142
  <div id="footer">
143
- Generated on Mon Dec 16 18:49:52 2019 by
143
+ Generated on Tue Dec 17 12:49:37 2019 by
144
144
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
145
145
  0.9.20 (ruby-2.6.5).
146
146
  </div>
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
- Mocha 1.11.0
7
+ Mocha 1.11.1
8
8
 
9
9
  </title>
10
10
 
@@ -52,7 +52,7 @@
52
52
  <div class="clear"></div>
53
53
  </div>
54
54
 
55
- <div id="content"><h1 class="noborder title">Mocha 1.11.0</h1>
55
+ <div id="content"><h1 class="noborder title">Mocha 1.11.1</h1>
56
56
  <div id="listing">
57
57
  <h1 class="alphaindex">Alphabetic Index</h1>
58
58
 
@@ -509,7 +509,7 @@
509
509
  </div>
510
510
 
511
511
  <div id="footer">
512
- Generated on Mon Dec 16 18:49:50 2019 by
512
+ Generated on Tue Dec 17 12:49:34 2019 by
513
513
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
514
514
  0.9.20 (ruby-2.6.5).
515
515
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: COPYING
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -71,7 +71,7 @@
71
71
  </div>
72
72
 
73
73
  <div id="footer">
74
- Generated on Mon Dec 16 18:49:50 2019 by
74
+ Generated on Tue Dec 17 12:49:34 2019 by
75
75
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
76
76
  0.9.20 (ruby-2.6.5).
77
77
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: MIT-LICENSE
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -75,7 +75,7 @@
75
75
  </div>
76
76
 
77
77
  <div id="footer">
78
- Generated on Mon Dec 16 18:49:50 2019 by
78
+ Generated on Tue Dec 17 12:49:34 2019 by
79
79
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
80
80
  0.9.20 (ruby-2.6.5).
81
81
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -438,7 +438,7 @@ Pushed mocha 1.2.0 to rubygems.org.
438
438
  </div>
439
439
 
440
440
  <div id="footer">
441
- Generated on Mon Dec 16 18:49:50 2019 by
441
+ Generated on Tue Dec 17 12:49:34 2019 by
442
442
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
443
443
  0.9.20 (ruby-2.6.5).
444
444
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: RELEASE
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -59,6 +59,14 @@
59
59
 
60
60
  <div id="content"><div id='filecontents'><h1>Release Notes</h1>
61
61
 
62
+ <h2>1.11.1</h2>
63
+
64
+ <h3>External changes</h3>
65
+
66
+ <ul>
67
+ <li>The <code>reinstate_undocumented_behaviour_from_v1_9</code> 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)</li>
68
+ </ul>
69
+
62
70
  <h2>1.11.0</h2>
63
71
 
64
72
  <h3>External changes</h3>
@@ -992,7 +1000,7 @@ Hash with wrong number of entries.</li>
992
1000
  </div>
993
1001
 
994
1002
  <div id="footer">
995
- Generated on Mon Dec 16 18:49:50 2019 by
1003
+ Generated on Tue Dec 17 12:49:34 2019 by
996
1004
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
997
1005
  0.9.20 (ruby-2.6.5).
998
1006
  </div>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <title>Mocha 1.11.0</title>
5
+ <title>Mocha 1.11.1</title>
6
6
  </head>
7
7
  <script type="text/javascript" charset="utf-8">
8
8
  var match = unescape(window.location.hash).match(/^#!(.+)/);
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -438,7 +438,7 @@ Pushed mocha 1.2.0 to rubygems.org.
438
438
  </div>
439
439
 
440
440
  <div id="footer">
441
- Generated on Mon Dec 16 18:49:50 2019 by
441
+ Generated on Tue Dec 17 12:49:34 2019 by
442
442
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
443
443
  0.9.20 (ruby-2.6.5).
444
444
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Top Level Namespace
8
8
 
9
- &mdash; Mocha 1.11.0
9
+ &mdash; Mocha 1.11.1
10
10
 
11
11
  </title>
12
12
 
@@ -108,7 +108,7 @@
108
108
  </div>
109
109
 
110
110
  <div id="footer">
111
- Generated on Mon Dec 16 18:49:50 2019 by
111
+ Generated on Tue Dec 17 12:49:34 2019 by
112
112
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
113
113
  0.9.20 (ruby-2.6.5).
114
114
  </div>
@@ -43,7 +43,7 @@ module Mocha
43
43
  :stubbing_non_public_method => :allow,
44
44
  :stubbing_method_on_nil => :prevent,
45
45
  :display_matching_invocations_on_failure => false,
46
- :reinstate_undocumented_behaviour_from_v1_9 => false
46
+ :reinstate_undocumented_behaviour_from_v1_9 => true
47
47
  }.freeze
48
48
 
49
49
  attr_reader :options
@@ -258,7 +258,7 @@ module Mocha
258
258
  #
259
259
  # Enabling this configuration option reinstates the previous behaviour, but displays a deprecation warning.
260
260
  #
261
- # @param [Boolean] value +true+ to reinstate undocumented behaviour; disabled by default.
261
+ # @param [Boolean] value +true+ to reinstate undocumented behaviour; enabled by default.
262
262
  #
263
263
  # @example Reinstate undocumented behaviour for {API#mock}
264
264
  # Mocha.configure do |c|
@@ -1,3 +1,3 @@
1
1
  module Mocha
2
- VERSION = '1.11.0'.freeze
2
+ VERSION = '1.11.1'.freeze
3
3
  end
@@ -6,7 +6,6 @@ class MockBuiltWithFirstArgumentTypeBeingStringTest < Mocha::TestCase
6
6
 
7
7
  def setup
8
8
  setup_acceptance_test
9
- Mocha.configure { |c| c.reinstate_undocumented_behaviour_from_v1_9 = true }
10
9
  end
11
10
 
12
11
  def teardown
@@ -1,4 +1,6 @@
1
1
  require File.expand_path('../acceptance_test_helper', __FILE__)
2
+ require 'mocha/configuration'
3
+ require 'deprecation_disabler'
2
4
 
3
5
  class MockTest < Mocha::TestCase
4
6
  include AcceptanceTest
@@ -39,9 +41,13 @@ class MockTest < Mocha::TestCase
39
41
 
40
42
  def test_should_build_symbol_named_mock_and_explicitly_add_an_expectation_which_is_satisfied
41
43
  test_result = run_as_test do
42
- foo = mock(:foo)
43
- foo.expects(:bar)
44
- foo.bar
44
+ Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => false) do
45
+ DeprecationDisabler.disable_deprecations do
46
+ foo = mock(:foo)
47
+ foo.expects(:bar)
48
+ foo.bar
49
+ end
50
+ end
45
51
  end
46
52
  assert_passed(test_result)
47
53
  end
@@ -56,8 +62,10 @@ class MockTest < Mocha::TestCase
56
62
 
57
63
  def test_should_build_symbol_named_mock_and_explicitly_add_an_expectation_which_is_not_satisfied
58
64
  test_result = run_as_test do
59
- foo = mock(:foo)
60
- foo.expects(:bar)
65
+ DeprecationDisabler.disable_deprecations do
66
+ foo = mock(:foo)
67
+ foo.expects(:bar)
68
+ end
61
69
  end
62
70
  assert_failed(test_result)
63
71
  end
@@ -98,9 +106,13 @@ class MockTest < Mocha::TestCase
98
106
 
99
107
  def test_should_build_symbol_named_mock_incorporating_two_expectations_which_are_satisifed
100
108
  test_result = run_as_test do
101
- foo = mock(:foo, :bar => 'bar', :baz => 'baz')
102
- foo.bar
103
- foo.baz
109
+ Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => false) do
110
+ DeprecationDisabler.disable_deprecations do
111
+ foo = mock(:foo, :bar => 'bar', :baz => 'baz')
112
+ foo.bar
113
+ foo.baz
114
+ end
115
+ end
104
116
  end
105
117
  assert_passed(test_result)
106
118
  end
@@ -115,8 +127,10 @@ class MockTest < Mocha::TestCase
115
127
 
116
128
  def test_should_build_symbol_named_mock_incorporating_two_expectations_the_first_of_which_is_not_satisifed
117
129
  test_result = run_as_test do
118
- foo = mock(:foo, :bar => 'bar', :baz => 'baz')
119
- foo.baz
130
+ DeprecationDisabler.disable_deprecations do
131
+ foo = mock(:foo, :bar => 'bar', :baz => 'baz')
132
+ foo.baz
133
+ end
120
134
  end
121
135
  assert_failed(test_result)
122
136
  end
@@ -131,8 +145,10 @@ class MockTest < Mocha::TestCase
131
145
 
132
146
  def test_should_build_symbol_named_mock_incorporating_two_expectations_the_second_of_which_is_not_satisifed
133
147
  test_result = run_as_test do
134
- foo = mock(:foo, :bar => 'bar', :baz => 'baz')
135
- foo.bar
148
+ DeprecationDisabler.disable_deprecations do
149
+ foo = mock(:foo, :bar => 'bar', :baz => 'baz')
150
+ foo.bar
151
+ end
136
152
  end
137
153
  assert_failed(test_result)
138
154
  end
@@ -1,4 +1,5 @@
1
1
  require File.expand_path('../acceptance_test_helper', __FILE__)
2
+ require 'mocha/configuration'
2
3
 
3
4
  class MultipleYieldingTest < Mocha::TestCase
4
5
  include AcceptanceTest
@@ -35,9 +36,11 @@ class MultipleYieldingTest < Mocha::TestCase
35
36
 
36
37
  def test_raises_local_jump_error_if_instructed_to_multiple_yield_but_no_block_given
37
38
  test_result = run_as_test do
38
- m = mock('m')
39
- m.stubs(:foo).multiple_yields([])
40
- assert_raises(LocalJumpError) { m.foo }
39
+ Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => false) do
40
+ m = mock('m')
41
+ m.stubs(:foo).multiple_yields([])
42
+ assert_raises(LocalJumpError) { m.foo }
43
+ end
41
44
  end
42
45
  assert_passed(test_result)
43
46
  end
@@ -24,9 +24,11 @@ class YieldingTest < Mocha::TestCase
24
24
 
25
25
  def test_raises_local_jump_error_if_instructed_to_yield_but_no_block_given
26
26
  test_result = run_as_test do
27
- m = mock('m')
28
- m.stubs(:foo).yields
29
- assert_raises(LocalJumpError) { m.foo }
27
+ Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => false) do
28
+ m = mock('m')
29
+ m.stubs(:foo).yields
30
+ assert_raises(LocalJumpError) { m.foo }
31
+ end
30
32
  end
31
33
  assert_passed(test_result)
32
34
  end
@@ -116,15 +116,15 @@ class ExpectationTest < Mocha::TestCase
116
116
  assert_equal [], yielded_parameters
117
117
  end
118
118
 
119
- def test_yield_should_fail_when_the_caller_does_not_provide_a_block
120
- assert_raises(LocalJumpError) { invoke(new_expectation.yields(:foo)) }
119
+ def test_yield_should_fail_when_the_caller_does_not_provide_a_block_and_behaviour_from_v1_9_not_retained
120
+ Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => false) do
121
+ assert_raises(LocalJumpError) { invoke(new_expectation.yields(:foo)) }
122
+ end
121
123
  end
122
124
 
123
- def test_yields_should_display_warning_when_caller_does_not_provide_block_and_behaviour_from_v1_9_retained
124
- Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => true) do
125
- DeprecationDisabler.disable_deprecations do
126
- invoke(new_expectation.yields(:foo, 1, [2, 3]))
127
- end
125
+ def test_yields_should_display_warning_when_caller_does_not_provide_block
126
+ DeprecationDisabler.disable_deprecations do
127
+ invoke(new_expectation.yields(:foo, 1, [2, 3]))
128
128
  end
129
129
  assert message = Deprecation.messages.last
130
130
  assert message.include?('Stubbed method was instructed to yield (:foo, 1, [2, 3])')
@@ -132,11 +132,9 @@ class ExpectationTest < Mocha::TestCase
132
132
  assert message.include?('This will raise a LocalJumpError in the future.')
133
133
  end
134
134
 
135
- def test_multiple_yields_should_display_warning_when_caller_does_not_provide_block_and_behaviour_from_v1_9_retained
136
- Mocha::Configuration.override(:reinstate_undocumented_behaviour_from_v1_9 => true) do
137
- DeprecationDisabler.disable_deprecations do
138
- invoke(new_expectation.multiple_yields(:foo, 1, [2, 3]))
139
- end
135
+ def test_multiple_yields_should_display_warning_when_caller_does_not_provide_block
136
+ DeprecationDisabler.disable_deprecations do
137
+ invoke(new_expectation.multiple_yields(:foo, 1, [2, 3]))
140
138
  end
141
139
  assert message = Deprecation.messages.last
142
140
  assert message.include?('Stubbed method was instructed to yield (2, 3)')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocha
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Mead
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2019-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake