rspec-mocks 3.13.0 → 3.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +179 -127
- data/lib/rspec/mocks/any_instance/recorder.rb +2 -0
- data/lib/rspec/mocks/configuration.rb +1 -1
- data/lib/rspec/mocks/error_generator.rb +1 -1
- data/lib/rspec/mocks/message_expectation.rb +40 -4
- data/lib/rspec/mocks/proxy.rb +4 -7
- data/lib/rspec/mocks/syntax.rb +1 -1
- data/lib/rspec/mocks/test_double.rb +3 -1
- data/lib/rspec/mocks/verifying_double.rb +2 -0
- data/lib/rspec/mocks/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +25 -90
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d6465ea6862f4d0ef55110b6f3c3c9496c2b6bd19c348e4dac7506abe92f588
|
|
4
|
+
data.tar.gz: eaf4c6a82408c91d3d379dcb388354d1484ceb2847256caf11c8016144766305
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32441ae9709dfd5ce5bc535d1bb1b5daabe13de1b179ae8a9d6fe5a9d4ce13f75ef34d7d6a824bd4bbb01d3814604ce400527bf4118ddfc7ebb6a6debf9d46ec
|
|
7
|
+
data.tar.gz: 352b3c15cb7bc14b58e50da95edeb068c08bb6b8c2a36c131ae90a19c750d20d20ad3b1fc0a36c379a88fd5503cfbe7b68be22157a192021e51749a197d80d19
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/Changelog.md
CHANGED
|
@@ -1,19 +1,71 @@
|
|
|
1
1
|
### Development
|
|
2
|
-
[Full Changelog](
|
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.6...3-13-maintenance)
|
|
3
|
+
|
|
4
|
+
### 3.13.6 / 2025-10-14
|
|
5
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.5...rspec-mocks-v3.13.6)
|
|
6
|
+
|
|
7
|
+
Bug Fixes:
|
|
8
|
+
|
|
9
|
+
* Work around possible infinite loop when stubbing `is_a?`. (Erin Paget, rspec/rspec#265)
|
|
10
|
+
|
|
11
|
+
### 3.13.5 / 2025-05-27
|
|
12
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.4...rspec-mocks-v3.13.5)
|
|
13
|
+
|
|
14
|
+
Bug Fixes:
|
|
15
|
+
|
|
16
|
+
* Fix regression where a previous fix (rspec/rspec#214) would leave behind thread data
|
|
17
|
+
between tests. (Jon Rowe, rspec/rspec#219)
|
|
18
|
+
* Fix links in gemspec to point to monorepo / homepage. (Jon Rowe)
|
|
19
|
+
|
|
20
|
+
### 3.13.4 / 2025-05-05
|
|
21
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.3...rspec-mocks-v3.13.4)
|
|
22
|
+
|
|
23
|
+
Bug Fixes:
|
|
24
|
+
|
|
25
|
+
* Fix regression where nested stubbed method calls would inadvertently not be counted.
|
|
26
|
+
(Jon Rowe, rspec/rspec#214)
|
|
27
|
+
* Fix regression where keyword arguments would not be passed through to nested stubbed
|
|
28
|
+
method calls. (Jon Rowe, rspec/rspec#214)
|
|
29
|
+
|
|
30
|
+
### 3.13.3 / 2025-05-01
|
|
31
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.2...rspec-mocks-v3.13.3)
|
|
32
|
+
|
|
33
|
+
Bug Fixes:
|
|
34
|
+
|
|
35
|
+
* When stubbing methods using the `expect_any_instance_of` or `allow_any_instance_of`
|
|
36
|
+
ensure the stubbed method has the same visibility as the real method.
|
|
37
|
+
(Jon Rowe, rspec/rspec-mocks#1596)
|
|
38
|
+
* Prevent recursive calls to stubbed methods during stub invocation.
|
|
39
|
+
(James Dabbs, rspec/rspec#116, rspec/rspec#156)
|
|
40
|
+
|
|
41
|
+
### 3.13.2 / 2024-10-02
|
|
42
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.1...v3.13.2)
|
|
43
|
+
|
|
44
|
+
Bug Fixes:
|
|
45
|
+
|
|
46
|
+
* Support keyword arguments in callables passed to `and_invoke`. (Jon Rowe, rspec/rspec-mocks#1595)
|
|
47
|
+
|
|
48
|
+
### 3.13.1 / 2024-05-08
|
|
49
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.0...v3.13.1)
|
|
50
|
+
|
|
51
|
+
Bug Fixes:
|
|
52
|
+
|
|
53
|
+
* Use `RSpec::Support::Mutex` in `RSpec::Mocks::Proxy` to avoid issues from
|
|
54
|
+
stubbing `::Mutex#new`. (Eric Mueller, rspec/rspec-mocks#1575)
|
|
3
55
|
|
|
4
56
|
### 3.13.0 / 2024-02-04
|
|
5
57
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.7...v3.13.0)
|
|
6
58
|
|
|
7
59
|
Enhancements:
|
|
8
60
|
|
|
9
|
-
* Add an `array_excluding` matcher for arguments. (Zane Wolfgang Pickett, #1528)
|
|
61
|
+
* Add an `array_excluding` matcher for arguments. (Zane Wolfgang Pickett, rspec/rspec-mocks#1528)
|
|
10
62
|
|
|
11
63
|
### 3.12.7 / 2024-02-04
|
|
12
64
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.6...v3.12.7)
|
|
13
65
|
|
|
14
66
|
Bug Fixes:
|
|
15
67
|
|
|
16
|
-
* Reduce allocations from "any_instance" style mocks. (Carlos Palhares, #1479)
|
|
68
|
+
* Reduce allocations from "any_instance" style mocks. (Carlos Palhares, rspec/rspec-mocks#1479)
|
|
17
69
|
|
|
18
70
|
### 3.12.6 / 2023-07-11
|
|
19
71
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.5...v3.12.6)
|
|
@@ -21,7 +73,7 @@ Bug Fixes:
|
|
|
21
73
|
Bug Fixes:
|
|
22
74
|
|
|
23
75
|
* Fix an issue with `and_call_original` when using the `method_missing` fallback
|
|
24
|
-
with keyword arguments. (Igor Drozdov, #1552)
|
|
76
|
+
with keyword arguments. (Igor Drozdov, rspec/rspec-mocks#1552)
|
|
25
77
|
|
|
26
78
|
### 3.12.5 / 2023-03-30
|
|
27
79
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.4...v3.12.5)
|
|
@@ -29,16 +81,16 @@ Bug Fixes:
|
|
|
29
81
|
Bug Fixes:
|
|
30
82
|
|
|
31
83
|
* Fix compatibility issue with Rails where active_support monkey patches `with`
|
|
32
|
-
when using any instance. (Lachlan Sylvester, #1540)
|
|
84
|
+
when using any instance. (Lachlan Sylvester, rspec/rspec-mocks#1540)
|
|
33
85
|
|
|
34
86
|
### 3.12.4 / 2023-03-12
|
|
35
87
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.3...v3.12.4)
|
|
36
88
|
|
|
37
89
|
Bug Fixes:
|
|
38
90
|
|
|
39
|
-
* Fix an issue with asserting that Array#reverse is never called. (Brad Trick, #1533)
|
|
91
|
+
* Fix an issue with asserting that Array#reverse is never called. (Brad Trick, rspec/rspec-mocks#1533)
|
|
40
92
|
* Fix compatibility issue with Rails where active_support monkey patches `with`.
|
|
41
|
-
(Jean Boussier, #1531, #1534)
|
|
93
|
+
(Jean Boussier, rspec/rspec-mocks#1531, rspec/rspec-mocks#1534)
|
|
42
94
|
|
|
43
95
|
### 3.12.3 / 2023-01-17
|
|
44
96
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.2...v3.12.3)
|
|
@@ -46,7 +98,7 @@ Bug Fixes:
|
|
|
46
98
|
Bug Fixes:
|
|
47
99
|
|
|
48
100
|
* Fix keyword delegation in `send` for verifying doubles on Ruby 3.
|
|
49
|
-
(Charlie Honig, #1485)
|
|
101
|
+
(Charlie Honig, rspec/rspec-mocks#1485)
|
|
50
102
|
|
|
51
103
|
### 3.12.2 / 2023-01-07
|
|
52
104
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.1...v3.12.2)
|
|
@@ -54,24 +106,24 @@ Bug Fixes:
|
|
|
54
106
|
Bug Fixes:
|
|
55
107
|
|
|
56
108
|
* Fix implementation blocks for mocks using keyword arguments on Ruby 3.2.0.
|
|
57
|
-
(Adam Steel, #1508)
|
|
109
|
+
(Adam Steel, rspec/rspec-mocks#1508)
|
|
58
110
|
* Fix keyword argument assertions when mocking using `with` on Ruby 3.2.0.
|
|
59
|
-
(Slava Kardakov, Benoit Tigeot, Phil Pirozhkov, Benoit Daloze, #1514)
|
|
111
|
+
(Slava Kardakov, Benoit Tigeot, Phil Pirozhkov, Benoit Daloze, rspec/rspec-mocks#1514)
|
|
60
112
|
|
|
61
113
|
### 3.12.1 / 2022-12-10
|
|
62
114
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.0...v3.12.1)
|
|
63
115
|
|
|
64
116
|
Bug Fixes:
|
|
65
117
|
|
|
66
|
-
* Remove empty diff marker when a diff only contains console codes. (Jon Rowe, #1506)
|
|
67
|
-
* Show keyword vs hash diff marker when arguments are not `==` (Jon Rowe, #1506)
|
|
118
|
+
* Remove empty diff marker when a diff only contains console codes. (Jon Rowe, rspec/rspec-mocks#1506)
|
|
119
|
+
* Show keyword vs hash diff marker when arguments are not `==` (Jon Rowe, rspec/rspec-mocks#1506)
|
|
68
120
|
* Change check to detect frozen objects to rescue errors rather than
|
|
69
121
|
pre-empting by checking `frozen?` due to some objects mis-behaving.
|
|
70
|
-
(Keegan Roth, #1401)
|
|
122
|
+
(Keegan Roth, rspec/rspec-mocks#1401)
|
|
71
123
|
* Prevent unfulfilled expectations using `expect_any_instance_of` across a class
|
|
72
|
-
inheritance boundary from raising rather than failing. (Jon Rowe, #1496)
|
|
124
|
+
inheritance boundary from raising rather than failing. (Jon Rowe, rspec/rspec-mocks#1496)
|
|
73
125
|
* Prevent a misleading error message when using `allow(...).not_to` with
|
|
74
|
-
unsupported matchers. (Phil Pirozhkov, #1503)
|
|
126
|
+
unsupported matchers. (Phil Pirozhkov, rspec/rspec-mocks#1503)
|
|
75
127
|
|
|
76
128
|
### 3.12.0 / 2022-10-26
|
|
77
129
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.2...v3.12.0)
|
|
@@ -79,7 +131,7 @@ Bug Fixes:
|
|
|
79
131
|
Enhancements:
|
|
80
132
|
|
|
81
133
|
* Improve diff output when diffing keyword arguments against hashes.
|
|
82
|
-
(Jean Boussier, #1461)
|
|
134
|
+
(Jean Boussier, rspec/rspec-mocks#1461)
|
|
83
135
|
|
|
84
136
|
### 3.11.2 / 2022-10-25
|
|
85
137
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...v3.11.2)
|
|
@@ -88,9 +140,9 @@ Bug Fixes:
|
|
|
88
140
|
|
|
89
141
|
* Use the original implementation of `Class.new` to detect overridden definitions
|
|
90
142
|
of `new` rather than the owner, fixing detection of "double aliased" methods
|
|
91
|
-
in Ruby 3 and above. (Benoit Daloze, #1470, #1476)
|
|
143
|
+
in Ruby 3 and above. (Benoit Daloze, rspec/rspec-mocks#1470, rspec/rspec-mocks#1476)
|
|
92
144
|
* Support keyword argument semantics when constraining argument expectations using
|
|
93
|
-
`with` on Ruby 3.0+ with `instance_double` (Andrii Malyshko, #1473)
|
|
145
|
+
`with` on Ruby 3.0+ with `instance_double` (Andrii Malyshko, rspec/rspec-mocks#1473)
|
|
94
146
|
|
|
95
147
|
### 3.11.1 / 2022-03-31
|
|
96
148
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...v3.11.1)
|
|
@@ -99,7 +151,7 @@ Bug Fixes:
|
|
|
99
151
|
|
|
100
152
|
* Add extra `ruby2_keywords` calls to properly designate methods using
|
|
101
153
|
`*args` to pass keyword around, fixes an issue with TruffleRuby.
|
|
102
|
-
(Benoit Daloze, #1464)
|
|
154
|
+
(Benoit Daloze, rspec/rspec-mocks#1464)
|
|
103
155
|
|
|
104
156
|
### 3.11.0 / 2022-02-09
|
|
105
157
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.3...v3.11.0)
|
|
@@ -107,16 +159,16 @@ Bug Fixes:
|
|
|
107
159
|
Enhancements:
|
|
108
160
|
|
|
109
161
|
* Add `and_invoke` implementation for configuring responses to `receive`
|
|
110
|
-
(and `receive_messages`) with multiple callable objects. (Kyle Smith, #1411)
|
|
162
|
+
(and `receive_messages`) with multiple callable objects. (Kyle Smith, rspec/rspec-mocks#1411)
|
|
111
163
|
|
|
112
164
|
### 3.10.3 / 2022-01-28
|
|
113
165
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.2...v3.10.3)
|
|
114
166
|
|
|
115
167
|
Bug Fixes:
|
|
116
168
|
|
|
117
|
-
* Suppress warning by setting `$VERBOSE` to nil. (Nobuyoshi Nakada, #1414)
|
|
169
|
+
* Suppress warning by setting `$VERBOSE` to nil. (Nobuyoshi Nakada, rspec/rspec-mocks#1414)
|
|
118
170
|
* Support keyword argument semantics when constraining argument expectations using
|
|
119
|
-
`with` on Ruby 3.0+ (Yusuke Endoh, #1394)
|
|
171
|
+
`with` on Ruby 3.0+ (Yusuke Endoh, rspec/rspec-mocks#1394)
|
|
120
172
|
|
|
121
173
|
### 3.10.2 / 2021-01-27
|
|
122
174
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.1...v3.10.2)
|
|
@@ -124,12 +176,12 @@ Bug Fixes:
|
|
|
124
176
|
Bug Fixes:
|
|
125
177
|
|
|
126
178
|
* Support keyword arguments with `and_call_original` on Ruby 3.0.
|
|
127
|
-
(Bryan Powell, #1385)
|
|
179
|
+
(Bryan Powell, rspec/rspec-mocks#1385)
|
|
128
180
|
* `RSpec::Mocks::Constant#previously_defined?` is now always a boolean.
|
|
129
|
-
(Phil Pirozhkov, #1397)
|
|
181
|
+
(Phil Pirozhkov, rspec/rspec-mocks#1397)
|
|
130
182
|
* Support keyword arguments on Ruby 3.0 when used with `expect_any_instance_of`
|
|
131
183
|
or `allow_any_instance_of` with `and_call_original`.
|
|
132
|
-
(Jess Hottenstein, #1407)
|
|
184
|
+
(Jess Hottenstein, rspec/rspec-mocks#1407)
|
|
133
185
|
|
|
134
186
|
### 3.10.1 / 2020-12-27
|
|
135
187
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.0...v3.10.1)
|
|
@@ -137,7 +189,7 @@ Bug Fixes:
|
|
|
137
189
|
Bug Fixes:
|
|
138
190
|
|
|
139
191
|
* Issue `ArgumentError` rather than `TypeError` when unsupported methods on
|
|
140
|
-
unsupported objects are attempted to be stubbed. (@zhisme, #1357)
|
|
192
|
+
unsupported objects are attempted to be stubbed. (@zhisme, rspec/rspec-mocks#1357)
|
|
141
193
|
|
|
142
194
|
### 3.10.0 / 2020-10-30
|
|
143
195
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.1...v3.10.0)
|
|
@@ -145,9 +197,9 @@ Bug Fixes:
|
|
|
145
197
|
Enhancements:
|
|
146
198
|
* Add the ability to set a custom error generator in `MessageExpectation`.
|
|
147
199
|
This will allow rspec-expectations to inject a custom failure message.
|
|
148
|
-
(Benoit Tigeot and Nicolas Zermati, #1312)
|
|
200
|
+
(Benoit Tigeot and Nicolas Zermati, rspec/rspec-mocks#1312)
|
|
149
201
|
* Return the result of the block passed to `RSpec::Mocks.with_temporary_scope`
|
|
150
|
-
when block run. (@expeehaa, #1329)
|
|
202
|
+
when block run. (@expeehaa, rspec/rspec-mocks#1329)
|
|
151
203
|
|
|
152
204
|
### 3.9.1 / 2019-12-31
|
|
153
205
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.0...v3.9.1)
|
|
@@ -155,7 +207,7 @@ Enhancements:
|
|
|
155
207
|
Bug Fixes:
|
|
156
208
|
|
|
157
209
|
* Trigger `RSpec::Mocks.configuration.verifying_double_callbacks` when using
|
|
158
|
-
`allow_any_instance_of` or `expect_any_instance_of` (Daniel Orner, #1309)
|
|
210
|
+
`allow_any_instance_of` or `expect_any_instance_of` (Daniel Orner, rspec/rspec-mocks#1309)
|
|
159
211
|
|
|
160
212
|
### 3.9.0 / 2019-10-07
|
|
161
213
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.2...v3.9.0)
|
|
@@ -163,16 +215,16 @@ Bug Fixes:
|
|
|
163
215
|
Enhancements:
|
|
164
216
|
|
|
165
217
|
* Improve thread safety of message expectations by using Mutex to prevent
|
|
166
|
-
deadlocking errors. (Ry Biesemeyer, #1236)
|
|
218
|
+
deadlocking errors. (Ry Biesemeyer, rspec/rspec-mocks#1236)
|
|
167
219
|
* Add the ability to use `time` as an alias for `times`. For example:
|
|
168
220
|
`expect(Class).to receive(:method).exactly(1).time`.
|
|
169
|
-
(Pistos, Benoit Tigeot, #1271)
|
|
221
|
+
(Pistos, Benoit Tigeot, rspec/rspec-mocks#1271)
|
|
170
222
|
|
|
171
223
|
### 3.8.2 / 2019-10-02
|
|
172
224
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.1...v3.8.2)
|
|
173
225
|
|
|
174
226
|
* Allow `array_including` argument matchers to be nested.
|
|
175
|
-
(Emmanuel Delmas, #1291)
|
|
227
|
+
(Emmanuel Delmas, rspec/rspec-mocks#1291)
|
|
176
228
|
|
|
177
229
|
### 3.8.1 / 2019-06-13
|
|
178
230
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.0...v3.8.1)
|
|
@@ -180,7 +232,7 @@ Enhancements:
|
|
|
180
232
|
Bug Fixes:
|
|
181
233
|
|
|
182
234
|
* Ensure stubbing methods does not change their visibility.
|
|
183
|
-
(Kevin Boschert, #1277)
|
|
235
|
+
(Kevin Boschert, rspec/rspec-mocks#1277)
|
|
184
236
|
|
|
185
237
|
### 3.8.0 / 2018-08-04
|
|
186
238
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.7.0...v3.8.0)
|
|
@@ -188,12 +240,12 @@ Bug Fixes:
|
|
|
188
240
|
Bug Fixes:
|
|
189
241
|
|
|
190
242
|
* Issue error when encountering invalid "counted" negative message expectations.
|
|
191
|
-
(Sergiy Yarinovskiy, #1212)
|
|
243
|
+
(Sergiy Yarinovskiy, rspec/rspec-mocks#1212)
|
|
192
244
|
* Ensure `allow_any_instance_of` and `expect_any_instance_of` can be temporarily
|
|
193
|
-
supressed. (Jon Rowe, #1228)
|
|
245
|
+
supressed. (Jon Rowe, rspec/rspec-mocks#1228)
|
|
194
246
|
* Ensure `expect_any_instance_of(double).to_not have_received(:some_method)`
|
|
195
247
|
fails gracefully (as its not supported) rather than issuing a `NoMethodError`.
|
|
196
|
-
(Maxim Krizhanovsky, #1231)
|
|
248
|
+
(Maxim Krizhanovsky, rspec/rspec-mocks#1231)
|
|
197
249
|
|
|
198
250
|
### 3.7.0 / 2017-10-17
|
|
199
251
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0...v3.7.0)
|
|
@@ -201,12 +253,12 @@ Bug Fixes:
|
|
|
201
253
|
Enhancements:
|
|
202
254
|
|
|
203
255
|
* Improve compatibility with `--enable-frozen-string-literal` option
|
|
204
|
-
on Ruby 2.3+. (Pat Allan, #1165)
|
|
256
|
+
on Ruby 2.3+. (Pat Allan, rspec/rspec-mocks#1165)
|
|
205
257
|
|
|
206
258
|
Bug Fixes:
|
|
207
259
|
|
|
208
260
|
* Fix `hash_including` and `hash_excluding` so that they work against
|
|
209
|
-
subclasses of `Hash`. (Aaron Rosenberg, #1167)
|
|
261
|
+
subclasses of `Hash`. (Aaron Rosenberg, rspec/rspec-mocks#1167)
|
|
210
262
|
|
|
211
263
|
### 3.6.0 / 2017-05-04
|
|
212
264
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta2...v3.6.0)
|
|
@@ -214,11 +266,11 @@ Bug Fixes:
|
|
|
214
266
|
Bug Fixes:
|
|
215
267
|
|
|
216
268
|
* Fix "instance variable @color not initialized" warning when using
|
|
217
|
-
rspec-mocks without rspec-core. (Myron Marston, #1142)
|
|
269
|
+
rspec-mocks without rspec-core. (Myron Marston, rspec/rspec-mocks#1142)
|
|
218
270
|
* Restore aliased module methods properly when stubbing on 1.8.7.
|
|
219
|
-
(Samuel Giddins, #1144)
|
|
271
|
+
(Samuel Giddins, rspec/rspec-mocks#1144)
|
|
220
272
|
* Allow a message chain expectation to be constrained by argument(s).
|
|
221
|
-
(Jon Rowe, #1156)
|
|
273
|
+
(Jon Rowe, rspec/rspec-mocks#1156)
|
|
222
274
|
|
|
223
275
|
### 3.6.0.beta2 / 2016-12-12
|
|
224
276
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta1...v3.6.0.beta2)
|
|
@@ -227,16 +279,16 @@ Enhancements:
|
|
|
227
279
|
|
|
228
280
|
* Add new `without_partial_double_verification { }` API that lets you
|
|
229
281
|
temporarily turn off partial double verification for an example.
|
|
230
|
-
(Jon Rowe, #1104)
|
|
282
|
+
(Jon Rowe, rspec/rspec-mocks#1104)
|
|
231
283
|
|
|
232
284
|
### 3.6.0.beta1 / 2016-10-09
|
|
233
285
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0...v3.6.0.beta1)
|
|
234
286
|
|
|
235
287
|
Bug Fixes:
|
|
236
288
|
|
|
237
|
-
* Return the test double instance form `#freeze` (Alessandro Berardi, #1109)
|
|
289
|
+
* Return the test double instance form `#freeze` (Alessandro Berardi, rspec/rspec-mocks#1109)
|
|
238
290
|
* Allow the special logic for stubbing `new` to work when `<Class>.method` has
|
|
239
|
-
been redefined. (Proby, #1119)
|
|
291
|
+
been redefined. (Proby, rspec/rspec-mocks#1119)
|
|
240
292
|
|
|
241
293
|
### 3.5.0 / 2016-07-01
|
|
242
294
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta4...v3.5.0)
|
|
@@ -244,14 +296,14 @@ Bug Fixes:
|
|
|
244
296
|
Enhancements:
|
|
245
297
|
|
|
246
298
|
* Provides a nice string representation of
|
|
247
|
-
`RSpec::Mocks::MessageExpectation` (Myron Marston, #1095)
|
|
299
|
+
`RSpec::Mocks::MessageExpectation` (Myron Marston, rspec/rspec-mocks#1095)
|
|
248
300
|
|
|
249
301
|
### 3.5.0.beta4 / 2016-06-05
|
|
250
302
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta3...v3.5.0.beta4)
|
|
251
303
|
|
|
252
304
|
Enhancements:
|
|
253
305
|
|
|
254
|
-
* Add `and_throw` to any instance handling. (Tobias Bühlmann, #1068)
|
|
306
|
+
* Add `and_throw` to any instance handling. (Tobias Bühlmann, rspec/rspec-mocks#1068)
|
|
255
307
|
|
|
256
308
|
### 3.5.0.beta3 / 2016-04-02
|
|
257
309
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta2...v3.5.0.beta3)
|
|
@@ -259,9 +311,9 @@ Enhancements:
|
|
|
259
311
|
Enhancements:
|
|
260
312
|
|
|
261
313
|
* Issue warning when attempting to use unsupported
|
|
262
|
-
`allow(...).to receive(...).ordered`. (Jon Rowe, #1000)
|
|
314
|
+
`allow(...).to receive(...).ordered`. (Jon Rowe, rspec/rspec-mocks#1000)
|
|
263
315
|
* Add `rspec/mocks/minitest_integration`, to properly integrate rspec-mocks
|
|
264
|
-
with minitest. (Myron Marston, #1065)
|
|
316
|
+
with minitest. (Myron Marston, rspec/rspec-mocks#1065)
|
|
265
317
|
|
|
266
318
|
### 3.5.0.beta2 / 2016-03-10
|
|
267
319
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta1...v3.5.0.beta2)
|
|
@@ -269,12 +321,12 @@ Enhancements:
|
|
|
269
321
|
Enhancements:
|
|
270
322
|
|
|
271
323
|
* Improve error message displayed when using `and_wrap_original` on pure test
|
|
272
|
-
doubles. (betesh, #1063)
|
|
324
|
+
doubles. (betesh, rspec/rspec-mocks#1063)
|
|
273
325
|
|
|
274
326
|
Bug Fixes:
|
|
275
327
|
|
|
276
328
|
* Fix issue that prevented `receive_message_chain(...).with(...)` working
|
|
277
|
-
correctly on "any instance" mocks. (Jon Rowe, #1061)
|
|
329
|
+
correctly on "any instance" mocks. (Jon Rowe, rspec/rspec-mocks#1061)
|
|
278
330
|
|
|
279
331
|
### 3.5.0.beta1 / 2016-02-06
|
|
280
332
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.1...v3.5.0.beta1)
|
|
@@ -282,20 +334,20 @@ Bug Fixes:
|
|
|
282
334
|
Bug Fixes:
|
|
283
335
|
|
|
284
336
|
* Allow `any_instance_of(...).to receive(...)` to use `and_yield` multiple
|
|
285
|
-
times. (Kilian Cirera Sant, #1054)
|
|
337
|
+
times. (Kilian Cirera Sant, rspec/rspec-mocks#1054)
|
|
286
338
|
* Allow matchers which inherit from `rspec-mocks` matchers to be used for
|
|
287
|
-
`allow`. (Andrew Kozin, #1056)
|
|
339
|
+
`allow`. (Andrew Kozin, rspec/rspec-mocks#1056)
|
|
288
340
|
* Prevent stubbing `respond_to?` on partial doubles from causing infinite
|
|
289
|
-
recursion. (Jon Rowe, #1013)
|
|
341
|
+
recursion. (Jon Rowe, rspec/rspec-mocks#1013)
|
|
290
342
|
* Prevent aliased methods from disapearing after being mocked with
|
|
291
|
-
`any_instance` (regression from #1043). (Joe Rafaniello, #1060)
|
|
343
|
+
`any_instance` (regression from rspec/rspec-mocks#1043). (Joe Rafaniello, rspec/rspec-mocks#1060)
|
|
292
344
|
|
|
293
345
|
### 3.4.1 / 2016-01-10
|
|
294
346
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.0...v3.4.1)
|
|
295
347
|
|
|
296
348
|
Bug Fixes:
|
|
297
349
|
|
|
298
|
-
* Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, #1043)
|
|
350
|
+
* Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, rspec/rspec-mocks#1043)
|
|
299
351
|
|
|
300
352
|
### 3.4.0 / 2015-11-11
|
|
301
353
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.2...v3.4.0)
|
|
@@ -303,18 +355,18 @@ Bug Fixes:
|
|
|
303
355
|
Enhancements:
|
|
304
356
|
|
|
305
357
|
* Make `expect(...).to have_received` work without relying upon
|
|
306
|
-
rspec-expectations. (Myron Marston, #978)
|
|
358
|
+
rspec-expectations. (Myron Marston, rspec/rspec-mocks#978)
|
|
307
359
|
* Add option for failing tests when expectations are set on `nil`.
|
|
308
|
-
(Liz Rush, #983)
|
|
360
|
+
(Liz Rush, rspec/rspec-mocks#983)
|
|
309
361
|
|
|
310
362
|
Bug Fixes:
|
|
311
363
|
|
|
312
364
|
* Fix `have_received { ... }` so that any block passed when the message
|
|
313
|
-
was received is forwarded to the `have_received` block. (Myron Marston, #1006)
|
|
365
|
+
was received is forwarded to the `have_received` block. (Myron Marston, rspec/rspec-mocks#1006)
|
|
314
366
|
* Fix infinite loop in error generator when stubbing `respond_to?`.
|
|
315
|
-
(Alex Dowad, #1022)
|
|
367
|
+
(Alex Dowad, rspec/rspec-mocks#1022)
|
|
316
368
|
* Fix issue with using `receive` on subclasses (at a class level) with 1.8.7.
|
|
317
|
-
(Alex Dowad, #1026)
|
|
369
|
+
(Alex Dowad, rspec/rspec-mocks#1026)
|
|
318
370
|
|
|
319
371
|
### 3.3.2 / 2015-07-15
|
|
320
372
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.1...v3.3.2)
|
|
@@ -322,7 +374,7 @@ Bug Fixes:
|
|
|
322
374
|
Bug Fixes:
|
|
323
375
|
|
|
324
376
|
* Prevent thread deadlock errors during proxy creation (e.g. when using
|
|
325
|
-
`before_verifying_doubles` callbacks). (Jon Rowe, #980, #979)
|
|
377
|
+
`before_verifying_doubles` callbacks). (Jon Rowe, rspec/rspec-mocks#980, rspec/rspec-mocks#979)
|
|
326
378
|
|
|
327
379
|
### 3.3.1 / 2015-06-19
|
|
328
380
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.0...v3.3.1)
|
|
@@ -332,7 +384,7 @@ Bug Fixes:
|
|
|
332
384
|
* Fix bug in `before_verifying_double` callback logic that caused it to be called
|
|
333
385
|
once for each class in the ancestor list when mocking or stubbing a class. Now
|
|
334
386
|
it is only called for the mocked or stubbed class, as you would expect. (Sam
|
|
335
|
-
Phippen, #974)
|
|
387
|
+
Phippen, rspec/rspec-mocks#974)
|
|
336
388
|
|
|
337
389
|
### 3.3.0 / 2015-06-12
|
|
338
390
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.1...v3.3.0)
|
|
@@ -341,45 +393,45 @@ Enhancements:
|
|
|
341
393
|
|
|
342
394
|
* When stubbing `new` on `MyClass` or `class_double(MyClass)`, use the
|
|
343
395
|
method signature from `MyClass#initialize` to verify arguments.
|
|
344
|
-
(Myron Marston, #886)
|
|
396
|
+
(Myron Marston, rspec/rspec-mocks#886)
|
|
345
397
|
* Use matcher descriptions when generating description of received arguments
|
|
346
|
-
for mock expectation failures. (Tim Wade, #891)
|
|
347
|
-
* Avoid loading `stringio` unnecessarily. (Myron Marston, #894)
|
|
398
|
+
for mock expectation failures. (Tim Wade, rspec/rspec-mocks#891)
|
|
399
|
+
* Avoid loading `stringio` unnecessarily. (Myron Marston, rspec/rspec-mocks#894)
|
|
348
400
|
* Verifying doubles failure messages now distinguish between class and instance
|
|
349
|
-
level methods. (Tim Wade, #896, #908)
|
|
401
|
+
level methods. (Tim Wade, rspec/rspec-mocks#896, rspec/rspec-mocks#908)
|
|
350
402
|
* Improve mock expectation failure messages so that it combines both
|
|
351
|
-
number of times and the received arguments in the output. (John Ceh, #918)
|
|
403
|
+
number of times and the received arguments in the output. (John Ceh, rspec/rspec-mocks#918)
|
|
352
404
|
* Improve how test doubles are represented in failure messages.
|
|
353
|
-
(Siva Gollapalli, Myron Marston, #932)
|
|
405
|
+
(Siva Gollapalli, Myron Marston, rspec/rspec-mocks#932)
|
|
354
406
|
* Rename `RSpec::Mocks::Configuration#when_declaring_verifying_double` to
|
|
355
407
|
`RSpec::Mocks::Configuration#before_verifying_doubles` and utilise when
|
|
356
|
-
verifying partial doubles. (Jon Rowe, #940)
|
|
408
|
+
verifying partial doubles. (Jon Rowe, rspec/rspec-mocks#940)
|
|
357
409
|
* Use rspec-support's `ObjectFormatter` for improved formatting of
|
|
358
410
|
arguments in failure messages so that, for example, full time
|
|
359
|
-
precisions is displayed for time objects. (Gavin Miller, Myron Marston, #955)
|
|
411
|
+
precisions is displayed for time objects. (Gavin Miller, Myron Marston, rspec/rspec-mocks#955)
|
|
360
412
|
|
|
361
413
|
Bug Fixes:
|
|
362
414
|
|
|
363
415
|
* Ensure expectations that raise eagerly also raise during RSpec verification.
|
|
364
416
|
This means that if exceptions are caught inside test execution the test will
|
|
365
|
-
still fail. (Sam Phippen, #884)
|
|
417
|
+
still fail. (Sam Phippen, rspec/rspec-mocks#884)
|
|
366
418
|
* Fix `have_received(msg).with(args).exactly(n).times` and
|
|
367
419
|
`receive(msg).with(args).exactly(n).times` failure messages
|
|
368
420
|
for when the message was received the wrong number of times with
|
|
369
421
|
the specified args, and also received additional times with other
|
|
370
422
|
arguments. Previously it confusingly listed the arguments as being
|
|
371
423
|
mis-matched (even when the double was allowed to receive with any
|
|
372
|
-
args) rather than listing the count. (John Ceh, #918)
|
|
424
|
+
args) rather than listing the count. (John Ceh, rspec/rspec-mocks#918)
|
|
373
425
|
* Fix `any_args`/`anything` support so that we avoid calling `obj == anything`
|
|
374
426
|
on user objects that may have improperly implemented `==` in a way that
|
|
375
|
-
raises errors. (Myron Marston, #924)
|
|
427
|
+
raises errors. (Myron Marston, rspec/rspec-mocks#924)
|
|
376
428
|
* Fix edge case involving stubbing the same method on a class and a subclass
|
|
377
|
-
which previously hit a `NoMethodError` internally in RSpec. (Myron Marston #954)
|
|
429
|
+
which previously hit a `NoMethodError` internally in RSpec. (Myron Marston rspec/rspec-mocks#954)
|
|
378
430
|
* Fix edge case where the message received count would be incremented multiple
|
|
379
|
-
times for one failure. (Myron Marston, #957)
|
|
431
|
+
times for one failure. (Myron Marston, rspec/rspec-mocks#957)
|
|
380
432
|
* Fix failure messages for when spies received the expected message with
|
|
381
|
-
different arguments and also received another message. (Maurício Linhares, #960)
|
|
382
|
-
* Silence whitespace-only diffs. (Myron Marston, #969)
|
|
433
|
+
different arguments and also received another message. (Maurício Linhares, rspec/rspec-mocks#960)
|
|
434
|
+
* Silence whitespace-only diffs. (Myron Marston, rspec/rspec-mocks#969)
|
|
383
435
|
|
|
384
436
|
### 3.2.1 / 2015-02-23
|
|
385
437
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.0...v3.2.1)
|
|
@@ -388,11 +440,11 @@ Bug Fixes:
|
|
|
388
440
|
|
|
389
441
|
* Add missing `rspec/support/differ` require so that rspec-mocks can be
|
|
390
442
|
used w/o rspec-expectations (which also loads the differ and hided the
|
|
391
|
-
fact we forgot to require it). (Myron Marston, #893)
|
|
443
|
+
fact we forgot to require it). (Myron Marston, rspec/rspec-mocks#893)
|
|
392
444
|
* Revert tracking of received arg mutation (added in 3.2.0 to provide an
|
|
393
445
|
error in a situation we can't support) as our implementation has side
|
|
394
446
|
effects on non-standard objects and there's no solution we could come
|
|
395
|
-
up with that always works. (Myron Marston, #900)
|
|
447
|
+
up with that always works. (Myron Marston, rspec/rspec-mocks#900)
|
|
396
448
|
|
|
397
449
|
### 3.2.0 / 2015-02-03
|
|
398
450
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.3...v3.2.0)
|
|
@@ -400,55 +452,55 @@ Bug Fixes:
|
|
|
400
452
|
Enhancements:
|
|
401
453
|
|
|
402
454
|
* Treat `any_args` as an arg splat, allowing it to match an arbitrary
|
|
403
|
-
number of args at any point in an arg list. (Myron Marston, #786)
|
|
455
|
+
number of args at any point in an arg list. (Myron Marston, rspec/rspec-mocks#786)
|
|
404
456
|
* Print diffs when arguments in mock expectations are mismatched.
|
|
405
|
-
(Sam Phippen, #751)
|
|
457
|
+
(Sam Phippen, rspec/rspec-mocks#751)
|
|
406
458
|
* Support names for verified doubles (`instance_double`, `instance_spy`,
|
|
407
459
|
`class_double`, `class_spy`, `object_double`, `object_spy`). (Cezary
|
|
408
|
-
Baginski, #826)
|
|
460
|
+
Baginski, rspec/rspec-mocks#826)
|
|
409
461
|
* Make `array_including` and `hash_including` argument matchers composable.
|
|
410
|
-
(Sam Phippen, #819)
|
|
462
|
+
(Sam Phippen, rspec/rspec-mocks#819)
|
|
411
463
|
* Make `allow_any_instance_of(...).to receive(...).and_wrap_original`
|
|
412
|
-
work. (Ryan Fitzgerald, #869)
|
|
464
|
+
work. (Ryan Fitzgerald, rspec/rspec-mocks#869)
|
|
413
465
|
|
|
414
466
|
Bug Fixes:
|
|
415
467
|
|
|
416
468
|
* Provide a clear error when users wrongly combine `no_args` with
|
|
417
469
|
additional arguments (e.g. `expect().to receive().with(no_args, 1)`).
|
|
418
|
-
(Myron Marston, #786)
|
|
470
|
+
(Myron Marston, rspec/rspec-mocks#786)
|
|
419
471
|
* Provide a clear error when users wrongly use `any_args` multiple times in the
|
|
420
472
|
same argument list (e.g. `expect().to receive().with(any_args, 1, any_args)`.
|
|
421
|
-
(Myron Marston, #786)
|
|
473
|
+
(Myron Marston, rspec/rspec-mocks#786)
|
|
422
474
|
* Prevent the error generator from using user object #description methods.
|
|
423
|
-
See [#685](https://github.com/rspec/rspec-mocks/issues/685).
|
|
424
|
-
(Sam Phippen, #751)
|
|
475
|
+
See [rspec/rspec-mocks#685](https://github.com/rspec/rspec-mocks/issues/685).
|
|
476
|
+
(Sam Phippen, rspec/rspec-mocks#751)
|
|
425
477
|
* Make verified doubles declared as `(instance|class)_double(SomeConst)`
|
|
426
478
|
work properly when `SomeConst` has previously been stubbed.
|
|
427
479
|
`(instance|class)_double("SomeClass")` already worked properly.
|
|
428
|
-
(Myron Marston, #824)
|
|
480
|
+
(Myron Marston, rspec/rspec-mocks#824)
|
|
429
481
|
* Add a matcher description for `receive`, `receive_messages` and
|
|
430
|
-
`receive_message_chain`. (Myron Marston, #828)
|
|
482
|
+
`receive_message_chain`. (Myron Marston, rspec/rspec-mocks#828)
|
|
431
483
|
* Validate invocation args for null object verified doubles.
|
|
432
|
-
(Myron Marston, #829)
|
|
484
|
+
(Myron Marston, rspec/rspec-mocks#829)
|
|
433
485
|
* Fix `RSpec::Mocks::Constant.original` when called with an invalid
|
|
434
486
|
constant to return an object indicating the constant name is invalid,
|
|
435
|
-
rather than blowing up. (Myron Marston, #833)
|
|
487
|
+
rather than blowing up. (Myron Marston, rspec/rspec-mocks#833)
|
|
436
488
|
* Make `extend RSpec::Mocks::ExampleMethods` on any object work properly
|
|
437
489
|
to add the rspec-mocks API to that object. Previously, `expect` would
|
|
438
|
-
be undefined. (Myron Marston, #846)
|
|
490
|
+
be undefined. (Myron Marston, rspec/rspec-mocks#846)
|
|
439
491
|
* Fix `require 'rspec/mocks/standalone'` so that it only affects `main`
|
|
440
492
|
and not every object. It's really only intended to be used in a REPL
|
|
441
493
|
like IRB, but some gems have loaded it, thinking it needs to be loaded
|
|
442
494
|
when using rspec-mocks outside the context of rspec-core.
|
|
443
|
-
(Myron Marston, #846)
|
|
495
|
+
(Myron Marston, rspec/rspec-mocks#846)
|
|
444
496
|
* Prevent message expectations from being modified by customization methods
|
|
445
|
-
(e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, #837)
|
|
497
|
+
(e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, rspec/rspec-mocks#837)
|
|
446
498
|
* Handle cases where a method stub cannot be removed due to something
|
|
447
499
|
external to RSpec monkeying with the method definition. This can
|
|
448
500
|
happen, for example, when you `file.reopen(io)` after previously
|
|
449
|
-
stubbing a method on the `file` object. (Myron Marston, #853)
|
|
501
|
+
stubbing a method on the `file` object. (Myron Marston, rspec/rspec-mocks#853)
|
|
450
502
|
* Provide a clear error when received message args are mutated before
|
|
451
|
-
a `have_received(...).with(...)` expectation. (Myron Marston, #868)
|
|
503
|
+
a `have_received(...).with(...)` expectation. (Myron Marston, rspec/rspec-mocks#868)
|
|
452
504
|
|
|
453
505
|
### 3.1.3 / 2014-10-08
|
|
454
506
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.2...v3.1.3)
|
|
@@ -456,13 +508,13 @@ Bug Fixes:
|
|
|
456
508
|
Bug Fixes:
|
|
457
509
|
|
|
458
510
|
* Correct received messages count when used with `have_received` matcher.
|
|
459
|
-
(Jon Rowe, #793)
|
|
511
|
+
(Jon Rowe, rspec/rspec-mocks#793)
|
|
460
512
|
* Provide a clear error message when you use `allow_any_instance_of(...)` or
|
|
461
513
|
`expect_any_instance_of(...)` with the `have_received` matcher (they are
|
|
462
514
|
not intended to be used together and previously caused an odd internal
|
|
463
|
-
failure in rspec-mocks). (Jon Rowe, #799).
|
|
515
|
+
failure in rspec-mocks). (Jon Rowe, rspec/rspec-mocks#799).
|
|
464
516
|
* Fix verified double `with` verification so that it applies to method
|
|
465
|
-
stubs. (Myron Marston, #790)
|
|
517
|
+
stubs. (Myron Marston, rspec/rspec-mocks#790)
|
|
466
518
|
|
|
467
519
|
### 3.1.2 / 2014-09-26
|
|
468
520
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.1...v3.1.2)
|
|
@@ -471,7 +523,7 @@ Bug Fixes:
|
|
|
471
523
|
|
|
472
524
|
* Provide a clear error message when you use `allow(...)` with the
|
|
473
525
|
`have_received` matcher (they are not intended to be used together
|
|
474
|
-
and previously caused an odd internal failure in rspec-mocks). (Jon Rowe, #788).
|
|
526
|
+
and previously caused an odd internal failure in rspec-mocks). (Jon Rowe, rspec/rspec-mocks#788).
|
|
475
527
|
|
|
476
528
|
### 3.1.1 / 2014-09-18
|
|
477
529
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.0...v3.1.1)
|
|
@@ -479,7 +531,7 @@ Bug Fixes:
|
|
|
479
531
|
Bug Fixes:
|
|
480
532
|
|
|
481
533
|
* Prevent included modules being detected as prepended modules on Ruby 2.0
|
|
482
|
-
when using `any_instance_of(...)`. (Tony Novak, #781)
|
|
534
|
+
when using `any_instance_of(...)`. (Tony Novak, rspec/rspec-mocks#781)
|
|
483
535
|
|
|
484
536
|
### 3.1.0 / 2014-09-04
|
|
485
537
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.4...v3.1.0)
|
|
@@ -488,24 +540,24 @@ Enhancements:
|
|
|
488
540
|
|
|
489
541
|
* Add spying methods (`spy`, `ìnstance_spy`, `class_spy` and `object_spy`)
|
|
490
542
|
which create doubles as null objects for use with spying in testing. (Sam
|
|
491
|
-
Phippen, #671)
|
|
543
|
+
Phippen, rspec/rspec-mocks#671)
|
|
492
544
|
* `have_received` matcher will raise "does not implement" errors correctly when
|
|
493
|
-
used with verifying doubles and partial doubles. (Xavier Shay, #722)
|
|
545
|
+
used with verifying doubles and partial doubles. (Xavier Shay, rspec/rspec-mocks#722)
|
|
494
546
|
* Allow matchers to be used in place of keyword arguments in `with`
|
|
495
|
-
expectations. (Xavier Shay, #726)
|
|
547
|
+
expectations. (Xavier Shay, rspec/rspec-mocks#726)
|
|
496
548
|
* Add `thrice` modifier to message expectation interface as a synonym
|
|
497
|
-
for `exactly(3).times`. (Dennis Taylor, #753)
|
|
549
|
+
for `exactly(3).times`. (Dennis Taylor, rspec/rspec-mocks#753)
|
|
498
550
|
* Add more `thrice` synonyms e.g. `.at_least(:thrice)`, `.at_most(:thrice)`,
|
|
499
|
-
`receive(...).thrice` and `have_received(...).thrice`. (Jon Rowe, #754)
|
|
551
|
+
`receive(...).thrice` and `have_received(...).thrice`. (Jon Rowe, rspec/rspec-mocks#754)
|
|
500
552
|
* Add `and_wrap_original` modifier for partial doubles to mutate the
|
|
501
|
-
response from a method. (Jon Rowe, #762)
|
|
553
|
+
response from a method. (Jon Rowe, rspec/rspec-mocks#762)
|
|
502
554
|
|
|
503
555
|
Bug Fixes:
|
|
504
556
|
|
|
505
557
|
* Remove `any_number_of_times` from `any_instance` recorders that were
|
|
506
|
-
erroneously causing mention of the method in documentation. (Jon Rowe, #760)
|
|
558
|
+
erroneously causing mention of the method in documentation. (Jon Rowe, rspec/rspec-mocks#760)
|
|
507
559
|
* Prevent included modules being detected as prepended modules on Ruby 2.0.
|
|
508
|
-
(Eugene Kenny, #771)
|
|
560
|
+
(Eugene Kenny, rspec/rspec-mocks#771)
|
|
509
561
|
|
|
510
562
|
### 3.0.4 / 2014-08-14
|
|
511
563
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.3...v3.0.4)
|
|
@@ -513,7 +565,7 @@ Bug Fixes:
|
|
|
513
565
|
Bug Fixes:
|
|
514
566
|
|
|
515
567
|
* Restore `kind_of(x)` to match using `arg.kind_of?(x)` (like RSpec 2)
|
|
516
|
-
rather than `x === arg`. (Jon Rowe, #750)
|
|
568
|
+
rather than `x === arg`. (Jon Rowe, rspec/rspec-mocks#750)
|
|
517
569
|
|
|
518
570
|
### 3.0.3 / 2014-07-21
|
|
519
571
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.2...v3.0.3)
|
|
@@ -521,10 +573,10 @@ Bug Fixes:
|
|
|
521
573
|
Bug Fixes:
|
|
522
574
|
|
|
523
575
|
* `have_received` matcher will raise "does not implement" errors correctly when
|
|
524
|
-
used with verifying doubles and partial doubles. (Xavier Shay, #722)
|
|
576
|
+
used with verifying doubles and partial doubles. (Xavier Shay, rspec/rspec-mocks#722)
|
|
525
577
|
* Make `double.as_null_object.dup` and `double.as_null_object.clone`
|
|
526
|
-
make the copies be null objects. (Myron Marston, #732)
|
|
527
|
-
* Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, #739)
|
|
578
|
+
make the copies be null objects. (Myron Marston, rspec/rspec-mocks#732)
|
|
579
|
+
* Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, rspec/rspec-mocks#739)
|
|
528
580
|
|
|
529
581
|
### 3.0.2 / 2014-06-19
|
|
530
582
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.1...v3.0.2)
|
|
@@ -532,11 +584,11 @@ Bug Fixes:
|
|
|
532
584
|
Bug Fixes:
|
|
533
585
|
|
|
534
586
|
* Fix edge case that triggered "can't add a new key into hash during
|
|
535
|
-
iteration" during mock verification. (Sam Phippen, Myron Marston, #711)
|
|
587
|
+
iteration" during mock verification. (Sam Phippen, Myron Marston, rspec/rspec-mocks#711)
|
|
536
588
|
* Fix verifying doubles so that when they accidentally leak into another
|
|
537
589
|
example, they provide the same clear error message that normal doubles
|
|
538
|
-
do. (Myron Marston, #718)
|
|
539
|
-
* Make `ordered` work with exact receive counts. (Sam Phippen, #713)
|
|
590
|
+
do. (Myron Marston, rspec/rspec-mocks#718)
|
|
591
|
+
* Make `ordered` work with exact receive counts. (Sam Phippen, rspec/rspec-mocks#713)
|
|
540
592
|
|
|
541
593
|
### 3.0.1 / 2014-06-07
|
|
542
594
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0...v3.0.1)
|
|
@@ -544,10 +596,10 @@ Bug Fixes:
|
|
|
544
596
|
Bug Fixes:
|
|
545
597
|
|
|
546
598
|
* Fix `receive_message_chain(...)` so that it supports `with` just like
|
|
547
|
-
`stub_chain` did. (Jon Rowe, #697)
|
|
599
|
+
`stub_chain` did. (Jon Rowe, rspec/rspec-mocks#697)
|
|
548
600
|
* Fix regression in `expect_any_instance_of` so that it expects the
|
|
549
601
|
message on _any_ instance rather than on _every_ instance.
|
|
550
|
-
(Myron Marston, #699)
|
|
602
|
+
(Myron Marston, rspec/rspec-mocks#699)
|
|
551
603
|
|
|
552
604
|
### 3.0.0 / 2014-06-01
|
|
553
605
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.rc1...v3.0.0)
|
|
@@ -760,14 +812,14 @@ Bug Fixes:
|
|
|
760
812
|
|
|
761
813
|
Bug Fixes:
|
|
762
814
|
|
|
763
|
-
* Add missing deprecation for using `with` with no arguments e.g. `with()`. (Yousuke, #970)
|
|
815
|
+
* Add missing deprecation for using `with` with no arguments e.g. `with()`. (Yousuke, rspec/rspec-mocks#970)
|
|
764
816
|
|
|
765
817
|
### 2.99.3 / 2015-01-09
|
|
766
818
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.2...v2.99.3)
|
|
767
819
|
|
|
768
820
|
Bug Fixes:
|
|
769
821
|
|
|
770
|
-
* Fix regression that caused an error when a test double was deserialized from YAML. (Yuji Nakayama, #777)
|
|
822
|
+
* Fix regression that caused an error when a test double was deserialized from YAML. (Yuji Nakayama, rspec/rspec-mocks#777)
|
|
771
823
|
|
|
772
824
|
### 2.99.2 / 2014-07-21
|
|
773
825
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.1...v2.99.2)
|
|
@@ -775,7 +827,7 @@ Bug Fixes:
|
|
|
775
827
|
Enhancements:
|
|
776
828
|
|
|
777
829
|
* Warn about upcoming change to `#===` matching and `DateTime#===` behaviour.
|
|
778
|
-
(Jon Rowe, #735)
|
|
830
|
+
(Jon Rowe, rspec/rspec-mocks#735)
|
|
779
831
|
|
|
780
832
|
### 2.99.1 / 2014-06-12
|
|
781
833
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0...v2.99.1)
|
|
@@ -783,11 +835,11 @@ Enhancements:
|
|
|
783
835
|
Bug Fixes:
|
|
784
836
|
|
|
785
837
|
* Fix bug that caused errors at the end of each example
|
|
786
|
-
when a `double.as_null_object` had been frozen. (Yuji Nakayama, #698)
|
|
838
|
+
when a `double.as_null_object` had been frozen. (Yuji Nakayama, rspec/rspec-mocks#698)
|
|
787
839
|
|
|
788
840
|
Deprecations:
|
|
789
841
|
|
|
790
|
-
* Deprecate freezing a test double. (Yuji Nakayama, #698)
|
|
842
|
+
* Deprecate freezing a test double. (Yuji Nakayama, rspec/rspec-mocks#698)
|
|
791
843
|
|
|
792
844
|
### 2.99.0 / 2014-06-01
|
|
793
845
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.rc1...v2.99.0)
|
|
@@ -963,8 +1015,8 @@ Bug fixes
|
|
|
963
1015
|
* Fix `Marshal.dump` extension so that it correctly handles nil.
|
|
964
1016
|
(Luke Imhoff, Jon Rowe)
|
|
965
1017
|
* Fix isolation of `allow_message_expectations_on_nil` (Jon Rowe)
|
|
966
|
-
* Use inspect to format actual arguments on expectations in failure messages (#280, Ben Langfeld)
|
|
967
|
-
* Protect against improperly initialised test doubles (#293) (Joseph Shraibman and Jon Rowe)
|
|
1018
|
+
* Use inspect to format actual arguments on expectations in failure messages (rspec/rspec-mocks#280, Ben Langfeld)
|
|
1019
|
+
* Protect against improperly initialised test doubles (rspec/rspec-mocks#293) (Joseph Shraibman and Jon Rowe)
|
|
968
1020
|
|
|
969
1021
|
Deprecations
|
|
970
1022
|
|
|
@@ -1146,7 +1198,7 @@ Bug fixes
|
|
|
1146
1198
|
|
|
1147
1199
|
* Allow a `as_null_object` to be passed to `with`
|
|
1148
1200
|
* Pass proc to block passed to stub (Aubrey Rhodes)
|
|
1149
|
-
* Initialize child message expectation args to match any args (#109 -
|
|
1201
|
+
* Initialize child message expectation args to match any args (rspec/rspec-mocks#109 -
|
|
1150
1202
|
preethiramdev)
|
|
1151
1203
|
|
|
1152
1204
|
### 2.8.0 / 2012-01-04
|
|
@@ -259,10 +259,12 @@ module RSpec
|
|
|
259
259
|
@observed_methods << method_name
|
|
260
260
|
backup_method!(method_name)
|
|
261
261
|
recorder = self
|
|
262
|
+
method_was_private = @klass.private_method_defined?(method_name)
|
|
262
263
|
@klass.__send__(:define_method, method_name) do |*args, &blk|
|
|
263
264
|
recorder.playback!(self, method_name)
|
|
264
265
|
__send__(method_name, *args, &blk)
|
|
265
266
|
end
|
|
267
|
+
@klass.__send__(:private, method_name) if method_was_private
|
|
266
268
|
@klass.__send__(:ruby2_keywords, method_name) if @klass.respond_to?(:ruby2_keywords, true)
|
|
267
269
|
end
|
|
268
270
|
|
|
@@ -156,7 +156,7 @@ module RSpec
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# @private
|
|
159
|
-
# Used to track
|
|
159
|
+
# Used to track whether we are temporarily suppressing verifying partial
|
|
160
160
|
# doubles with `without_partial_double_verification { ... }`
|
|
161
161
|
attr_accessor :temporarily_suppress_partial_double_verification
|
|
162
162
|
|
|
@@ -68,7 +68,7 @@ module RSpec
|
|
|
68
68
|
# counter.count # => 3
|
|
69
69
|
# counter.count # => 3
|
|
70
70
|
# # etc
|
|
71
|
-
def and_return(first_value, *values)
|
|
71
|
+
def and_return(first_value, *values, &_block)
|
|
72
72
|
raise_already_invoked_error_if_necessary(__method__)
|
|
73
73
|
if negative?
|
|
74
74
|
raise "`and_return` is not supported with negative message expectations"
|
|
@@ -101,12 +101,12 @@ module RSpec
|
|
|
101
101
|
#
|
|
102
102
|
# allow(api).to receive(:get_foo).and_invoke(-> { raise ApiTimeout }, -> { raise ApiTimeout }, -> { :a_foo })
|
|
103
103
|
# api.get_foo # => raises ApiTimeout
|
|
104
|
-
# api.get_foo # =>
|
|
104
|
+
# api.get_foo # => raises ApiTimeout
|
|
105
105
|
# api.get_foo # => :a_foo
|
|
106
106
|
# api.get_foo # => :a_foo
|
|
107
107
|
# api.get_foo # => :a_foo
|
|
108
108
|
# # etc
|
|
109
|
-
def and_invoke(first_proc, *procs)
|
|
109
|
+
def and_invoke(first_proc, *procs, &_block)
|
|
110
110
|
raise_already_invoked_error_if_necessary(__method__)
|
|
111
111
|
if negative?
|
|
112
112
|
raise "`and_invoke` is not supported with negative message expectations"
|
|
@@ -400,6 +400,9 @@ module RSpec
|
|
|
400
400
|
end
|
|
401
401
|
alias inspect to_s
|
|
402
402
|
|
|
403
|
+
# Implementation details is a long module
|
|
404
|
+
# rubocop:disable Metrics/ModuleLength
|
|
405
|
+
|
|
403
406
|
# @private
|
|
404
407
|
# Contains the parts of `MessageExpectation` that aren't part of
|
|
405
408
|
# rspec-mocks' public API. The class is very big and could really use
|
|
@@ -436,6 +439,8 @@ module RSpec
|
|
|
436
439
|
@ordered = false
|
|
437
440
|
@at_least = @at_most = @exactly = nil
|
|
438
441
|
|
|
442
|
+
self.invoking_internals = false
|
|
443
|
+
|
|
439
444
|
# Initialized to nil so that we don't allocate an array for every
|
|
440
445
|
# mock or stub. See also comment in `and_yield`.
|
|
441
446
|
@args_to_yield = nil
|
|
@@ -471,10 +476,19 @@ module RSpec
|
|
|
471
476
|
ruby2_keywords :safe_invoke if respond_to?(:ruby2_keywords, true)
|
|
472
477
|
|
|
473
478
|
def invoke(parent_stub, *args, &block)
|
|
474
|
-
|
|
479
|
+
if invoking_internals
|
|
480
|
+
safe_invoke_without_incrementing_received_count(parent_stub, *args, &block)
|
|
481
|
+
else
|
|
482
|
+
invoke_incrementing_actual_calls_by(1, true, parent_stub, *args, &block)
|
|
483
|
+
end
|
|
475
484
|
end
|
|
476
485
|
ruby2_keywords :invoke if respond_to?(:ruby2_keywords, true)
|
|
477
486
|
|
|
487
|
+
def safe_invoke_without_incrementing_received_count(parent_stub, *args, &block)
|
|
488
|
+
invoke_incrementing_actual_calls_by(0, false, parent_stub, *args, &block)
|
|
489
|
+
end
|
|
490
|
+
ruby2_keywords :safe_invoke_without_incrementing_received_count if respond_to?(:ruby2_keywords, true)
|
|
491
|
+
|
|
478
492
|
def invoke_without_incrementing_received_count(parent_stub, *args, &block)
|
|
479
493
|
invoke_incrementing_actual_calls_by(0, true, parent_stub, *args, &block)
|
|
480
494
|
end
|
|
@@ -601,7 +615,24 @@ module RSpec
|
|
|
601
615
|
@exception_source_id ||= "#{self.class.name} #{__id__}"
|
|
602
616
|
end
|
|
603
617
|
|
|
618
|
+
def invoking_internals
|
|
619
|
+
RSpec::Support.thread_local_data[:"__rspec_#{object_id}_invoking_internals"]
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
def invoking_internals=(value)
|
|
623
|
+
# We clear the key for this rather than setting to false because otherwise the amount of
|
|
624
|
+
# thread local data will keep growing over the lifetime of the thread (which is a long
|
|
625
|
+
# time on a single threaded spec run e.g standard MRI)
|
|
626
|
+
if value
|
|
627
|
+
RSpec::Support.thread_local_data[:"__rspec_#{object_id}_invoking_internals"] = true
|
|
628
|
+
else
|
|
629
|
+
RSpec::Support.thread_local_data.delete(:"__rspec_#{object_id}_invoking_internals")
|
|
630
|
+
end
|
|
631
|
+
end
|
|
632
|
+
|
|
604
633
|
def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, &block)
|
|
634
|
+
self.invoking_internals = true
|
|
635
|
+
|
|
605
636
|
args.unshift(orig_object) if yield_receiver_to_implementation_block?
|
|
606
637
|
|
|
607
638
|
if negative? || (allowed_to_fail && (@exactly || @at_most) && (@actual_received_count == @expected_received_count))
|
|
@@ -617,12 +648,15 @@ module RSpec
|
|
|
617
648
|
|
|
618
649
|
@order_group.handle_order_constraint self
|
|
619
650
|
|
|
651
|
+
self.invoking_internals = false
|
|
652
|
+
|
|
620
653
|
if implementation.present?
|
|
621
654
|
implementation.call(*args, &block)
|
|
622
655
|
elsif parent_stub
|
|
623
656
|
parent_stub.invoke(nil, *args, &block)
|
|
624
657
|
end
|
|
625
658
|
ensure
|
|
659
|
+
self.invoking_internals = false
|
|
626
660
|
@actual_received_count_write_mutex.synchronize do
|
|
627
661
|
@actual_received_count += increment
|
|
628
662
|
end
|
|
@@ -688,6 +722,7 @@ module RSpec
|
|
|
688
722
|
|
|
689
723
|
include ImplementationDetails
|
|
690
724
|
end
|
|
725
|
+
# rubocop:enable Metrics/ModuleLength
|
|
691
726
|
|
|
692
727
|
# Handles the implementation of an `and_yield` declaration.
|
|
693
728
|
# @private
|
|
@@ -748,6 +783,7 @@ module RSpec
|
|
|
748
783
|
|
|
749
784
|
proc.call(*args, &block)
|
|
750
785
|
end
|
|
786
|
+
ruby2_keywords(:call) if respond_to?(:ruby2_keywords, true)
|
|
751
787
|
end
|
|
752
788
|
|
|
753
789
|
# Represents a configured implementation. Takes into account
|
data/lib/rspec/mocks/proxy.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
RSpec::Support.require_rspec_support 'mutex'
|
|
2
|
+
|
|
1
3
|
module RSpec
|
|
2
4
|
module Mocks
|
|
3
5
|
# @private
|
|
@@ -9,11 +11,6 @@ module RSpec
|
|
|
9
11
|
end
|
|
10
12
|
end
|
|
11
13
|
|
|
12
|
-
unless defined?(Mutex)
|
|
13
|
-
Support.require_rspec_support 'mutex'
|
|
14
|
-
Mutex = Support::Mutex
|
|
15
|
-
end
|
|
16
|
-
|
|
17
14
|
# @private
|
|
18
15
|
def ensure_implemented(*_args)
|
|
19
16
|
# noop for basic proxies, see VerifyingProxy for behaviour.
|
|
@@ -27,7 +24,7 @@ module RSpec
|
|
|
27
24
|
@order_group = order_group
|
|
28
25
|
@error_generator = ErrorGenerator.new(object)
|
|
29
26
|
@messages_received = []
|
|
30
|
-
@messages_received_mutex = Mutex.new
|
|
27
|
+
@messages_received_mutex = Support::Mutex.new
|
|
31
28
|
@options = options
|
|
32
29
|
@null_object = false
|
|
33
30
|
@method_doubles = Hash.new { |h, k| h[k] = MethodDouble.new(@object, k, self) }
|
|
@@ -35,7 +32,7 @@ module RSpec
|
|
|
35
32
|
|
|
36
33
|
# @private
|
|
37
34
|
def ensure_can_be_proxied!(object)
|
|
38
|
-
return unless object
|
|
35
|
+
return unless Symbol === object
|
|
39
36
|
|
|
40
37
|
msg = "Cannot proxy frozen objects. Symbols such as #{object} cannot be mocked or stubbed."
|
|
41
38
|
raise ArgumentError, msg
|
data/lib/rspec/mocks/syntax.rb
CHANGED
|
@@ -115,7 +115,7 @@ module RSpec
|
|
|
115
115
|
Matchers::Receive.new(method_name, block)
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
def receive_messages(message_return_value_hash)
|
|
118
|
+
def receive_messages(message_return_value_hash, &_block)
|
|
119
119
|
matcher = Matchers::ReceiveMessages.new(message_return_value_hash)
|
|
120
120
|
matcher.warn_about_block if block_given?
|
|
121
121
|
matcher
|
|
@@ -36,12 +36,14 @@ module RSpec
|
|
|
36
36
|
|
|
37
37
|
# Redefining `__send__` causes ruby to issue a warning.
|
|
38
38
|
old, $VERBOSE = $VERBOSE, nil
|
|
39
|
+
# rubocop:disable Naming/MethodName
|
|
39
40
|
def __send__(name, *args, &block)
|
|
40
41
|
@__sending_message = name
|
|
41
42
|
super
|
|
42
43
|
ensure
|
|
43
44
|
@__sending_message = nil
|
|
44
45
|
end
|
|
46
|
+
# rubocop:enable Naming/MethodName
|
|
45
47
|
ruby2_keywords :__send__ if respond_to?(:ruby2_keywords, true)
|
|
46
48
|
$VERBOSE = old
|
|
47
49
|
|
data/lib/rspec/mocks/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-mocks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.13.
|
|
4
|
+
version: 3.13.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Baker
|
|
8
8
|
- David Chelimsky
|
|
9
9
|
- Myron Marston
|
|
10
|
-
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain:
|
|
13
12
|
- |
|
|
14
13
|
-----BEGIN CERTIFICATE-----
|
|
15
|
-
|
|
14
|
+
MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXVMA0GCSqGSIb3DQEBCwUAMIGAMQswCQYD
|
|
16
15
|
VQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEO
|
|
17
16
|
MAwGA1UECgwFUlNwZWMxEzARBgNVBAMMCnJzcGVjLmluZm8xJTAjBgkqhkiG9w0B
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
CQEWFnJzcGVjQGdvb2dsZWdyb3Vwcy5jb20wHhcNMjUwMjA2MTE0NjU2WhcNMjYw
|
|
18
|
+
MjA2MTE0NjU2WjCBgDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24x
|
|
20
19
|
EDAOBgNVBAcMB1NlYXR0bGUxDjAMBgNVBAoMBVJTcGVjMRMwEQYDVQQDDApyc3Bl
|
|
21
20
|
Yy5pbmZvMSUwIwYJKoZIhvcNAQkBFhZyc3BlY0Bnb29nbGVncm91cHMuY29tMIIC
|
|
22
21
|
IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsSmjgcHaKlD0jizRJowi2bGI
|
|
@@ -30,22 +29,21 @@ cert_chain:
|
|
|
30
29
|
Xeh3EVdWY3vMB1pkhPwlsenpcmj5gOzrd54lELOVbCGHCf48iSqeflY2Lhe0pvzK
|
|
31
30
|
blXCJBDmtrebvus291rM/dHcbEfK1SVd5Wut/n131iouf6dnNCFskFygDcgBbthC
|
|
32
31
|
gpEMqf80lEmhX59VUsm0Pv6OEo+ZPHBvXPiJA6DShQh9t3YtpwyA8uVDMbT/i32u
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
+
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
F3MdtaDehhjC
|
|
32
|
+
2FUsqZbbJcCmkBrGposCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
|
33
|
+
HQYDVR0OBBYEFPPvQ5XT0Nvuhi6k+hrWVv35J+TeMA0GCSqGSIb3DQEBCwUAA4IC
|
|
34
|
+
AQBGBr0ll2yLrkO6IeK5Q7qZFnANaUCKfi6Of9VztZJXgKAU5KAQxyOidGktoA5N
|
|
35
|
+
lp+bFKudRkW8jSehqoNaNBdSZ9Bc07EGMXIhUFJZF9rq7Z2SKPwUm6EaSsBK13QR
|
|
36
|
+
U4K6wuaw5ZJSFzklapoGOJRGnFlnNtlhNFY6+tTwCeblwZbcuYGyGY8+Rg7GbyVl
|
|
37
|
+
3Tr4Gi1aS/qG/MDXKdE8HWm39dmaAMdbw6dg1VBd0JrX2VqH7xvE1dM/D3OlKrNp
|
|
38
|
+
gNFRNJig3Y8qPjocZR0cGkhgZoC9wribWxHSNawZm4CoV3fja2HNx9QyM7BaB+as
|
|
39
|
+
yuqAiBbA7vBcyc8nKATip3mxbyXYXoDD7nmO8JCPP7O/WsgG+U/B2a0kPdvYFoxE
|
|
40
|
+
Q0Js3GtFCuMvL+0rifqdxBOLtu0Pw9q4RvToTJIl2IR6eTgCb82B1hw9qKf7PjuL
|
|
41
|
+
BoEsYjjDhGw6FZvcJG8O6uj7aB+z4aF21YR74UGL7sq/RIPNNez5JI95jTGfqCPy
|
|
42
|
+
6yo0w3zja3yg28QK3Fj+tbOHeSLv9SDQWi/1jiPprGzbxGvbVvjvX11YZc46vkmY
|
|
43
|
+
AwP+qZPPf97FXXZGEGIYhhHpnj+Ltx9nCetRPiZ4rvYBcXgCWVQSg6eiEofrMwn/
|
|
44
|
+
AKMCABhZ1Y2eATsfMgdkmIZk7JIPZiSi6eUxPiCMP9M/pw==
|
|
47
45
|
-----END CERTIFICATE-----
|
|
48
|
-
date:
|
|
46
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
49
47
|
dependencies:
|
|
50
48
|
- !ruby/object:Gem::Dependency
|
|
51
49
|
name: rspec-support
|
|
@@ -81,68 +79,6 @@ dependencies:
|
|
|
81
79
|
- - "<"
|
|
82
80
|
- !ruby/object:Gem::Version
|
|
83
81
|
version: '2.0'
|
|
84
|
-
- !ruby/object:Gem::Dependency
|
|
85
|
-
name: rake
|
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
|
87
|
-
requirements:
|
|
88
|
-
- - ">"
|
|
89
|
-
- !ruby/object:Gem::Version
|
|
90
|
-
version: 10.0.0
|
|
91
|
-
type: :development
|
|
92
|
-
prerelease: false
|
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
-
requirements:
|
|
95
|
-
- - ">"
|
|
96
|
-
- !ruby/object:Gem::Version
|
|
97
|
-
version: 10.0.0
|
|
98
|
-
- !ruby/object:Gem::Dependency
|
|
99
|
-
name: cucumber
|
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
|
101
|
-
requirements:
|
|
102
|
-
- - ">="
|
|
103
|
-
- !ruby/object:Gem::Version
|
|
104
|
-
version: '1.3'
|
|
105
|
-
type: :development
|
|
106
|
-
prerelease: false
|
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
-
requirements:
|
|
109
|
-
- - ">="
|
|
110
|
-
- !ruby/object:Gem::Version
|
|
111
|
-
version: '1.3'
|
|
112
|
-
- !ruby/object:Gem::Dependency
|
|
113
|
-
name: aruba
|
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
|
115
|
-
requirements:
|
|
116
|
-
- - ">="
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version: 1.1.0
|
|
119
|
-
- - "<"
|
|
120
|
-
- !ruby/object:Gem::Version
|
|
121
|
-
version: 3.0.0
|
|
122
|
-
type: :development
|
|
123
|
-
prerelease: false
|
|
124
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
125
|
-
requirements:
|
|
126
|
-
- - ">="
|
|
127
|
-
- !ruby/object:Gem::Version
|
|
128
|
-
version: 1.1.0
|
|
129
|
-
- - "<"
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: 3.0.0
|
|
132
|
-
- !ruby/object:Gem::Dependency
|
|
133
|
-
name: minitest
|
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - "~>"
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '5.2'
|
|
139
|
-
type: :development
|
|
140
|
-
prerelease: false
|
|
141
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - "~>"
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: '5.2'
|
|
146
82
|
description: RSpec's 'test double' framework, with support for stubbing and mocking
|
|
147
83
|
email: rspec@googlegroups.com
|
|
148
84
|
executables: []
|
|
@@ -195,16 +131,16 @@ files:
|
|
|
195
131
|
- lib/rspec/mocks/verifying_message_expectation.rb
|
|
196
132
|
- lib/rspec/mocks/verifying_proxy.rb
|
|
197
133
|
- lib/rspec/mocks/version.rb
|
|
198
|
-
homepage: https://
|
|
134
|
+
homepage: https://rspec.info
|
|
199
135
|
licenses:
|
|
200
136
|
- MIT
|
|
201
137
|
metadata:
|
|
202
|
-
bug_tracker_uri: https://github.com/rspec/rspec
|
|
203
|
-
changelog_uri: https://github.com/rspec/rspec
|
|
138
|
+
bug_tracker_uri: https://github.com/rspec/rspec/issues
|
|
139
|
+
changelog_uri: https://github.com/rspec/rspec/blob/rspec-mocks-v3.13.6/rspec-mocks/Changelog.md
|
|
204
140
|
documentation_uri: https://rspec.info/documentation/
|
|
205
141
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
|
206
|
-
|
|
207
|
-
|
|
142
|
+
rubygems_mfa_required: 'true'
|
|
143
|
+
source_code_uri: https://github.com/rspec/rspec/blob/rspec-mocks-v3.13.6/rspec-mocks
|
|
208
144
|
rdoc_options:
|
|
209
145
|
- "--charset=UTF-8"
|
|
210
146
|
require_paths:
|
|
@@ -220,8 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
220
156
|
- !ruby/object:Gem::Version
|
|
221
157
|
version: '0'
|
|
222
158
|
requirements: []
|
|
223
|
-
rubygems_version: 3.
|
|
224
|
-
signing_key:
|
|
159
|
+
rubygems_version: 3.6.7
|
|
225
160
|
specification_version: 4
|
|
226
|
-
summary: rspec-mocks-3.13.
|
|
161
|
+
summary: rspec-mocks-3.13.6
|
|
227
162
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|