rspec-mocks 3.12.5 → 3.13.5
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 +191 -124
- data/README.md +2 -0
- data/lib/rspec/mocks/any_instance/recorder.rb +13 -9
- data/lib/rspec/mocks/argument_matchers.rb +51 -7
- data/lib/rspec/mocks/configuration.rb +1 -1
- data/lib/rspec/mocks/message_expectation.rb +40 -4
- data/lib/rspec/mocks/method_double.rb +11 -4
- data/lib/rspec/mocks/proxy.rb +3 -6
- 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 +27 -86
- metadata.gz.sig +0 -0
data/Changelog.md
CHANGED
@@ -1,5 +1,72 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.5...3-13-maintenance)
|
3
|
+
|
4
|
+
### 3.13.5 / 2025-05-27
|
5
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.4...rspec-mocks-v3.13.5)
|
6
|
+
|
7
|
+
Bug Fixes:
|
8
|
+
|
9
|
+
* Fix regression where a previous fix (rspec/rspec#214) would leave behind thread data
|
10
|
+
between tests. (Jon Rowe, rspec/rspec#219)
|
11
|
+
* Fix links in gemspec to point to monorepo / homepage. (Jon Rowe)
|
12
|
+
|
13
|
+
### 3.13.4 / 2025-05-05
|
14
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.3...rspec-mocks-v3.13.4)
|
15
|
+
|
16
|
+
Bug Fixes:
|
17
|
+
|
18
|
+
* Fix regression where nested stubbed method calls would inadvertently not be counted.
|
19
|
+
(Jon Rowe, rspec/rspec#214)
|
20
|
+
* Fix regression where keyword arguments would not be passed through to nested stubbed
|
21
|
+
method calls. (Jon Rowe, rspec/rspec#214)
|
22
|
+
|
23
|
+
### 3.13.3 / 2025-05-01
|
24
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-mocks-v3.13.2...rspec-mocks-v3.13.3)
|
25
|
+
|
26
|
+
Bug Fixes:
|
27
|
+
|
28
|
+
* When stubbing methods using the `expect_any_instance_of` or `allow_any_instance_of`
|
29
|
+
ensure the stubbed method has the same visibility as the real method.
|
30
|
+
(Jon Rowe, rspec/rspec-mocks#1596)
|
31
|
+
* Prevent recursive calls to stubbed methods during stub invocation.
|
32
|
+
(James Dabbs, rspec/rspec#116, rspec/rspec#156)
|
33
|
+
|
34
|
+
### 3.13.2 / 2024-10-02
|
35
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.1...v3.13.2)
|
36
|
+
|
37
|
+
Bug Fixes:
|
38
|
+
|
39
|
+
* Support keyword arguments in callables passed to `and_invoke`. (Jon Rowe, rspec/rspec-mocks#1595)
|
40
|
+
|
41
|
+
### 3.13.1 / 2024-05-08
|
42
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.13.0...v3.13.1)
|
43
|
+
|
44
|
+
Bug Fixes:
|
45
|
+
|
46
|
+
* Use `RSpec::Support::Mutex` in `RSpec::Mocks::Proxy` to avoid issues from
|
47
|
+
stubbing `::Mutex#new`. (Eric Mueller, rspec/rspec-mocks#1575)
|
48
|
+
|
49
|
+
### 3.13.0 / 2024-02-04
|
50
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.7...v3.13.0)
|
51
|
+
|
52
|
+
Enhancements:
|
53
|
+
|
54
|
+
* Add an `array_excluding` matcher for arguments. (Zane Wolfgang Pickett, rspec/rspec-mocks#1528)
|
55
|
+
|
56
|
+
### 3.12.7 / 2024-02-04
|
57
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.6...v3.12.7)
|
58
|
+
|
59
|
+
Bug Fixes:
|
60
|
+
|
61
|
+
* Reduce allocations from "any_instance" style mocks. (Carlos Palhares, rspec/rspec-mocks#1479)
|
62
|
+
|
63
|
+
### 3.12.6 / 2023-07-11
|
64
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.5...v3.12.6)
|
65
|
+
|
66
|
+
Bug Fixes:
|
67
|
+
|
68
|
+
* Fix an issue with `and_call_original` when using the `method_missing` fallback
|
69
|
+
with keyword arguments. (Igor Drozdov, rspec/rspec-mocks#1552)
|
3
70
|
|
4
71
|
### 3.12.5 / 2023-03-30
|
5
72
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.4...v3.12.5)
|
@@ -7,16 +74,16 @@
|
|
7
74
|
Bug Fixes:
|
8
75
|
|
9
76
|
* Fix compatibility issue with Rails where active_support monkey patches `with`
|
10
|
-
when using any instance. (Lachlan Sylvester, #1540)
|
77
|
+
when using any instance. (Lachlan Sylvester, rspec/rspec-mocks#1540)
|
11
78
|
|
12
79
|
### 3.12.4 / 2023-03-12
|
13
80
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.3...v3.12.4)
|
14
81
|
|
15
82
|
Bug Fixes:
|
16
83
|
|
17
|
-
* Fix an issue with asserting that Array#reverse is never called. (Brad Trick, #1533)
|
84
|
+
* Fix an issue with asserting that Array#reverse is never called. (Brad Trick, rspec/rspec-mocks#1533)
|
18
85
|
* Fix compatibility issue with Rails where active_support monkey patches `with`.
|
19
|
-
(Jean Boussier, #1531, #1534)
|
86
|
+
(Jean Boussier, rspec/rspec-mocks#1531, rspec/rspec-mocks#1534)
|
20
87
|
|
21
88
|
### 3.12.3 / 2023-01-17
|
22
89
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.2...v3.12.3)
|
@@ -24,7 +91,7 @@ Bug Fixes:
|
|
24
91
|
Bug Fixes:
|
25
92
|
|
26
93
|
* Fix keyword delegation in `send` for verifying doubles on Ruby 3.
|
27
|
-
(Charlie Honig, #1485)
|
94
|
+
(Charlie Honig, rspec/rspec-mocks#1485)
|
28
95
|
|
29
96
|
### 3.12.2 / 2023-01-07
|
30
97
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.1...v3.12.2)
|
@@ -32,24 +99,24 @@ Bug Fixes:
|
|
32
99
|
Bug Fixes:
|
33
100
|
|
34
101
|
* Fix implementation blocks for mocks using keyword arguments on Ruby 3.2.0.
|
35
|
-
(Adam Steel, #1508)
|
102
|
+
(Adam Steel, rspec/rspec-mocks#1508)
|
36
103
|
* Fix keyword argument assertions when mocking using `with` on Ruby 3.2.0.
|
37
|
-
(Slava Kardakov, Benoit Tigeot, Phil Pirozhkov, Benoit Daloze, #1514)
|
104
|
+
(Slava Kardakov, Benoit Tigeot, Phil Pirozhkov, Benoit Daloze, rspec/rspec-mocks#1514)
|
38
105
|
|
39
106
|
### 3.12.1 / 2022-12-10
|
40
107
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.0...v3.12.1)
|
41
108
|
|
42
109
|
Bug Fixes:
|
43
110
|
|
44
|
-
* Remove empty diff marker when a diff only contains console codes. (Jon Rowe, #1506)
|
45
|
-
* Show keyword vs hash diff marker when arguments are not `==` (Jon Rowe, #1506)
|
111
|
+
* Remove empty diff marker when a diff only contains console codes. (Jon Rowe, rspec/rspec-mocks#1506)
|
112
|
+
* Show keyword vs hash diff marker when arguments are not `==` (Jon Rowe, rspec/rspec-mocks#1506)
|
46
113
|
* Change check to detect frozen objects to rescue errors rather than
|
47
114
|
pre-empting by checking `frozen?` due to some objects mis-behaving.
|
48
|
-
(Keegan Roth, #1401)
|
115
|
+
(Keegan Roth, rspec/rspec-mocks#1401)
|
49
116
|
* Prevent unfulfilled expectations using `expect_any_instance_of` across a class
|
50
|
-
inheritance boundary from raising rather than failing. (Jon Rowe, #1496)
|
117
|
+
inheritance boundary from raising rather than failing. (Jon Rowe, rspec/rspec-mocks#1496)
|
51
118
|
* Prevent a misleading error message when using `allow(...).not_to` with
|
52
|
-
unsupported matchers. (Phil Pirozhkov, #1503)
|
119
|
+
unsupported matchers. (Phil Pirozhkov, rspec/rspec-mocks#1503)
|
53
120
|
|
54
121
|
### 3.12.0 / 2022-10-26
|
55
122
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.2...v3.12.0)
|
@@ -57,7 +124,7 @@ Bug Fixes:
|
|
57
124
|
Enhancements:
|
58
125
|
|
59
126
|
* Improve diff output when diffing keyword arguments against hashes.
|
60
|
-
(Jean Boussier, #1461)
|
127
|
+
(Jean Boussier, rspec/rspec-mocks#1461)
|
61
128
|
|
62
129
|
### 3.11.2 / 2022-10-25
|
63
130
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...v3.11.2)
|
@@ -66,9 +133,9 @@ Bug Fixes:
|
|
66
133
|
|
67
134
|
* Use the original implementation of `Class.new` to detect overridden definitions
|
68
135
|
of `new` rather than the owner, fixing detection of "double aliased" methods
|
69
|
-
in Ruby 3 and above. (Benoit Daloze, #1470, #1476)
|
136
|
+
in Ruby 3 and above. (Benoit Daloze, rspec/rspec-mocks#1470, rspec/rspec-mocks#1476)
|
70
137
|
* Support keyword argument semantics when constraining argument expectations using
|
71
|
-
`with` on Ruby 3.0+ with `instance_double` (Andrii Malyshko, #1473)
|
138
|
+
`with` on Ruby 3.0+ with `instance_double` (Andrii Malyshko, rspec/rspec-mocks#1473)
|
72
139
|
|
73
140
|
### 3.11.1 / 2022-03-31
|
74
141
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...v3.11.1)
|
@@ -77,7 +144,7 @@ Bug Fixes:
|
|
77
144
|
|
78
145
|
* Add extra `ruby2_keywords` calls to properly designate methods using
|
79
146
|
`*args` to pass keyword around, fixes an issue with TruffleRuby.
|
80
|
-
(Benoit Daloze, #1464)
|
147
|
+
(Benoit Daloze, rspec/rspec-mocks#1464)
|
81
148
|
|
82
149
|
### 3.11.0 / 2022-02-09
|
83
150
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.3...v3.11.0)
|
@@ -85,16 +152,16 @@ Bug Fixes:
|
|
85
152
|
Enhancements:
|
86
153
|
|
87
154
|
* Add `and_invoke` implementation for configuring responses to `receive`
|
88
|
-
(and `receive_messages`) with multiple callable objects. (Kyle Smith, #1411)
|
155
|
+
(and `receive_messages`) with multiple callable objects. (Kyle Smith, rspec/rspec-mocks#1411)
|
89
156
|
|
90
157
|
### 3.10.3 / 2022-01-28
|
91
158
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.2...v3.10.3)
|
92
159
|
|
93
160
|
Bug Fixes:
|
94
161
|
|
95
|
-
* Suppress warning by setting `$VERBOSE` to nil. (Nobuyoshi Nakada, #1414)
|
162
|
+
* Suppress warning by setting `$VERBOSE` to nil. (Nobuyoshi Nakada, rspec/rspec-mocks#1414)
|
96
163
|
* Support keyword argument semantics when constraining argument expectations using
|
97
|
-
`with` on Ruby 3.0+ (Yusuke Endoh, #1394)
|
164
|
+
`with` on Ruby 3.0+ (Yusuke Endoh, rspec/rspec-mocks#1394)
|
98
165
|
|
99
166
|
### 3.10.2 / 2021-01-27
|
100
167
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.1...v3.10.2)
|
@@ -102,12 +169,12 @@ Bug Fixes:
|
|
102
169
|
Bug Fixes:
|
103
170
|
|
104
171
|
* Support keyword arguments with `and_call_original` on Ruby 3.0.
|
105
|
-
(Bryan Powell, #1385)
|
172
|
+
(Bryan Powell, rspec/rspec-mocks#1385)
|
106
173
|
* `RSpec::Mocks::Constant#previously_defined?` is now always a boolean.
|
107
|
-
(Phil Pirozhkov, #1397)
|
174
|
+
(Phil Pirozhkov, rspec/rspec-mocks#1397)
|
108
175
|
* Support keyword arguments on Ruby 3.0 when used with `expect_any_instance_of`
|
109
176
|
or `allow_any_instance_of` with `and_call_original`.
|
110
|
-
(Jess Hottenstein, #1407)
|
177
|
+
(Jess Hottenstein, rspec/rspec-mocks#1407)
|
111
178
|
|
112
179
|
### 3.10.1 / 2020-12-27
|
113
180
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.0...v3.10.1)
|
@@ -115,7 +182,7 @@ Bug Fixes:
|
|
115
182
|
Bug Fixes:
|
116
183
|
|
117
184
|
* Issue `ArgumentError` rather than `TypeError` when unsupported methods on
|
118
|
-
unsupported objects are attempted to be stubbed. (@zhisme, #1357)
|
185
|
+
unsupported objects are attempted to be stubbed. (@zhisme, rspec/rspec-mocks#1357)
|
119
186
|
|
120
187
|
### 3.10.0 / 2020-10-30
|
121
188
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.1...v3.10.0)
|
@@ -123,9 +190,9 @@ Bug Fixes:
|
|
123
190
|
Enhancements:
|
124
191
|
* Add the ability to set a custom error generator in `MessageExpectation`.
|
125
192
|
This will allow rspec-expectations to inject a custom failure message.
|
126
|
-
(Benoit Tigeot and Nicolas Zermati, #1312)
|
193
|
+
(Benoit Tigeot and Nicolas Zermati, rspec/rspec-mocks#1312)
|
127
194
|
* Return the result of the block passed to `RSpec::Mocks.with_temporary_scope`
|
128
|
-
when block run. (@expeehaa, #1329)
|
195
|
+
when block run. (@expeehaa, rspec/rspec-mocks#1329)
|
129
196
|
|
130
197
|
### 3.9.1 / 2019-12-31
|
131
198
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.9.0...v3.9.1)
|
@@ -133,7 +200,7 @@ Enhancements:
|
|
133
200
|
Bug Fixes:
|
134
201
|
|
135
202
|
* Trigger `RSpec::Mocks.configuration.verifying_double_callbacks` when using
|
136
|
-
`allow_any_instance_of` or `expect_any_instance_of` (Daniel Orner, #1309)
|
203
|
+
`allow_any_instance_of` or `expect_any_instance_of` (Daniel Orner, rspec/rspec-mocks#1309)
|
137
204
|
|
138
205
|
### 3.9.0 / 2019-10-07
|
139
206
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.2...v3.9.0)
|
@@ -141,16 +208,16 @@ Bug Fixes:
|
|
141
208
|
Enhancements:
|
142
209
|
|
143
210
|
* Improve thread safety of message expectations by using Mutex to prevent
|
144
|
-
deadlocking errors. (Ry Biesemeyer, #1236)
|
211
|
+
deadlocking errors. (Ry Biesemeyer, rspec/rspec-mocks#1236)
|
145
212
|
* Add the ability to use `time` as an alias for `times`. For example:
|
146
213
|
`expect(Class).to receive(:method).exactly(1).time`.
|
147
|
-
(Pistos, Benoit Tigeot, #1271)
|
214
|
+
(Pistos, Benoit Tigeot, rspec/rspec-mocks#1271)
|
148
215
|
|
149
216
|
### 3.8.2 / 2019-10-02
|
150
217
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.1...v3.8.2)
|
151
218
|
|
152
219
|
* Allow `array_including` argument matchers to be nested.
|
153
|
-
(Emmanuel Delmas, #1291)
|
220
|
+
(Emmanuel Delmas, rspec/rspec-mocks#1291)
|
154
221
|
|
155
222
|
### 3.8.1 / 2019-06-13
|
156
223
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.0...v3.8.1)
|
@@ -158,7 +225,7 @@ Enhancements:
|
|
158
225
|
Bug Fixes:
|
159
226
|
|
160
227
|
* Ensure stubbing methods does not change their visibility.
|
161
|
-
(Kevin Boschert, #1277)
|
228
|
+
(Kevin Boschert, rspec/rspec-mocks#1277)
|
162
229
|
|
163
230
|
### 3.8.0 / 2018-08-04
|
164
231
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.7.0...v3.8.0)
|
@@ -166,12 +233,12 @@ Bug Fixes:
|
|
166
233
|
Bug Fixes:
|
167
234
|
|
168
235
|
* Issue error when encountering invalid "counted" negative message expectations.
|
169
|
-
(Sergiy Yarinovskiy, #1212)
|
236
|
+
(Sergiy Yarinovskiy, rspec/rspec-mocks#1212)
|
170
237
|
* Ensure `allow_any_instance_of` and `expect_any_instance_of` can be temporarily
|
171
|
-
supressed. (Jon Rowe, #1228)
|
238
|
+
supressed. (Jon Rowe, rspec/rspec-mocks#1228)
|
172
239
|
* Ensure `expect_any_instance_of(double).to_not have_received(:some_method)`
|
173
240
|
fails gracefully (as its not supported) rather than issuing a `NoMethodError`.
|
174
|
-
(Maxim Krizhanovsky, #1231)
|
241
|
+
(Maxim Krizhanovsky, rspec/rspec-mocks#1231)
|
175
242
|
|
176
243
|
### 3.7.0 / 2017-10-17
|
177
244
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0...v3.7.0)
|
@@ -179,12 +246,12 @@ Bug Fixes:
|
|
179
246
|
Enhancements:
|
180
247
|
|
181
248
|
* Improve compatibility with `--enable-frozen-string-literal` option
|
182
|
-
on Ruby 2.3+. (Pat Allan, #1165)
|
249
|
+
on Ruby 2.3+. (Pat Allan, rspec/rspec-mocks#1165)
|
183
250
|
|
184
251
|
Bug Fixes:
|
185
252
|
|
186
253
|
* Fix `hash_including` and `hash_excluding` so that they work against
|
187
|
-
subclasses of `Hash`. (Aaron Rosenberg, #1167)
|
254
|
+
subclasses of `Hash`. (Aaron Rosenberg, rspec/rspec-mocks#1167)
|
188
255
|
|
189
256
|
### 3.6.0 / 2017-05-04
|
190
257
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta2...v3.6.0)
|
@@ -192,11 +259,11 @@ Bug Fixes:
|
|
192
259
|
Bug Fixes:
|
193
260
|
|
194
261
|
* Fix "instance variable @color not initialized" warning when using
|
195
|
-
rspec-mocks without rspec-core. (Myron Marston, #1142)
|
262
|
+
rspec-mocks without rspec-core. (Myron Marston, rspec/rspec-mocks#1142)
|
196
263
|
* Restore aliased module methods properly when stubbing on 1.8.7.
|
197
|
-
(Samuel Giddins, #1144)
|
264
|
+
(Samuel Giddins, rspec/rspec-mocks#1144)
|
198
265
|
* Allow a message chain expectation to be constrained by argument(s).
|
199
|
-
(Jon Rowe, #1156)
|
266
|
+
(Jon Rowe, rspec/rspec-mocks#1156)
|
200
267
|
|
201
268
|
### 3.6.0.beta2 / 2016-12-12
|
202
269
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta1...v3.6.0.beta2)
|
@@ -205,16 +272,16 @@ Enhancements:
|
|
205
272
|
|
206
273
|
* Add new `without_partial_double_verification { }` API that lets you
|
207
274
|
temporarily turn off partial double verification for an example.
|
208
|
-
(Jon Rowe, #1104)
|
275
|
+
(Jon Rowe, rspec/rspec-mocks#1104)
|
209
276
|
|
210
277
|
### 3.6.0.beta1 / 2016-10-09
|
211
278
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0...v3.6.0.beta1)
|
212
279
|
|
213
280
|
Bug Fixes:
|
214
281
|
|
215
|
-
* Return the test double instance form `#freeze` (Alessandro Berardi, #1109)
|
282
|
+
* Return the test double instance form `#freeze` (Alessandro Berardi, rspec/rspec-mocks#1109)
|
216
283
|
* Allow the special logic for stubbing `new` to work when `<Class>.method` has
|
217
|
-
been redefined. (Proby, #1119)
|
284
|
+
been redefined. (Proby, rspec/rspec-mocks#1119)
|
218
285
|
|
219
286
|
### 3.5.0 / 2016-07-01
|
220
287
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta4...v3.5.0)
|
@@ -222,14 +289,14 @@ Bug Fixes:
|
|
222
289
|
Enhancements:
|
223
290
|
|
224
291
|
* Provides a nice string representation of
|
225
|
-
`RSpec::Mocks::MessageExpectation` (Myron Marston, #1095)
|
292
|
+
`RSpec::Mocks::MessageExpectation` (Myron Marston, rspec/rspec-mocks#1095)
|
226
293
|
|
227
294
|
### 3.5.0.beta4 / 2016-06-05
|
228
295
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta3...v3.5.0.beta4)
|
229
296
|
|
230
297
|
Enhancements:
|
231
298
|
|
232
|
-
* Add `and_throw` to any instance handling. (Tobias Bühlmann, #1068)
|
299
|
+
* Add `and_throw` to any instance handling. (Tobias Bühlmann, rspec/rspec-mocks#1068)
|
233
300
|
|
234
301
|
### 3.5.0.beta3 / 2016-04-02
|
235
302
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta2...v3.5.0.beta3)
|
@@ -237,9 +304,9 @@ Enhancements:
|
|
237
304
|
Enhancements:
|
238
305
|
|
239
306
|
* Issue warning when attempting to use unsupported
|
240
|
-
`allow(...).to receive(...).ordered`. (Jon Rowe, #1000)
|
307
|
+
`allow(...).to receive(...).ordered`. (Jon Rowe, rspec/rspec-mocks#1000)
|
241
308
|
* Add `rspec/mocks/minitest_integration`, to properly integrate rspec-mocks
|
242
|
-
with minitest. (Myron Marston, #1065)
|
309
|
+
with minitest. (Myron Marston, rspec/rspec-mocks#1065)
|
243
310
|
|
244
311
|
### 3.5.0.beta2 / 2016-03-10
|
245
312
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.5.0.beta1...v3.5.0.beta2)
|
@@ -247,12 +314,12 @@ Enhancements:
|
|
247
314
|
Enhancements:
|
248
315
|
|
249
316
|
* Improve error message displayed when using `and_wrap_original` on pure test
|
250
|
-
doubles. (betesh, #1063)
|
317
|
+
doubles. (betesh, rspec/rspec-mocks#1063)
|
251
318
|
|
252
319
|
Bug Fixes:
|
253
320
|
|
254
321
|
* Fix issue that prevented `receive_message_chain(...).with(...)` working
|
255
|
-
correctly on "any instance" mocks. (Jon Rowe, #1061)
|
322
|
+
correctly on "any instance" mocks. (Jon Rowe, rspec/rspec-mocks#1061)
|
256
323
|
|
257
324
|
### 3.5.0.beta1 / 2016-02-06
|
258
325
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.1...v3.5.0.beta1)
|
@@ -260,20 +327,20 @@ Bug Fixes:
|
|
260
327
|
Bug Fixes:
|
261
328
|
|
262
329
|
* Allow `any_instance_of(...).to receive(...)` to use `and_yield` multiple
|
263
|
-
times. (Kilian Cirera Sant, #1054)
|
330
|
+
times. (Kilian Cirera Sant, rspec/rspec-mocks#1054)
|
264
331
|
* Allow matchers which inherit from `rspec-mocks` matchers to be used for
|
265
|
-
`allow`. (Andrew Kozin, #1056)
|
332
|
+
`allow`. (Andrew Kozin, rspec/rspec-mocks#1056)
|
266
333
|
* Prevent stubbing `respond_to?` on partial doubles from causing infinite
|
267
|
-
recursion. (Jon Rowe, #1013)
|
334
|
+
recursion. (Jon Rowe, rspec/rspec-mocks#1013)
|
268
335
|
* Prevent aliased methods from disapearing after being mocked with
|
269
|
-
`any_instance` (regression from #1043). (Joe Rafaniello, #1060)
|
336
|
+
`any_instance` (regression from rspec/rspec-mocks#1043). (Joe Rafaniello, rspec/rspec-mocks#1060)
|
270
337
|
|
271
338
|
### 3.4.1 / 2016-01-10
|
272
339
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.4.0...v3.4.1)
|
273
340
|
|
274
341
|
Bug Fixes:
|
275
342
|
|
276
|
-
* Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, #1043)
|
343
|
+
* Fix `any_instance` to work properly on Ruby 2.3. (Joe Rafaniello, rspec/rspec-mocks#1043)
|
277
344
|
|
278
345
|
### 3.4.0 / 2015-11-11
|
279
346
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.2...v3.4.0)
|
@@ -281,18 +348,18 @@ Bug Fixes:
|
|
281
348
|
Enhancements:
|
282
349
|
|
283
350
|
* Make `expect(...).to have_received` work without relying upon
|
284
|
-
rspec-expectations. (Myron Marston, #978)
|
351
|
+
rspec-expectations. (Myron Marston, rspec/rspec-mocks#978)
|
285
352
|
* Add option for failing tests when expectations are set on `nil`.
|
286
|
-
(Liz Rush, #983)
|
353
|
+
(Liz Rush, rspec/rspec-mocks#983)
|
287
354
|
|
288
355
|
Bug Fixes:
|
289
356
|
|
290
357
|
* Fix `have_received { ... }` so that any block passed when the message
|
291
|
-
was received is forwarded to the `have_received` block. (Myron Marston, #1006)
|
358
|
+
was received is forwarded to the `have_received` block. (Myron Marston, rspec/rspec-mocks#1006)
|
292
359
|
* Fix infinite loop in error generator when stubbing `respond_to?`.
|
293
|
-
(Alex Dowad, #1022)
|
360
|
+
(Alex Dowad, rspec/rspec-mocks#1022)
|
294
361
|
* Fix issue with using `receive` on subclasses (at a class level) with 1.8.7.
|
295
|
-
(Alex Dowad, #1026)
|
362
|
+
(Alex Dowad, rspec/rspec-mocks#1026)
|
296
363
|
|
297
364
|
### 3.3.2 / 2015-07-15
|
298
365
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.1...v3.3.2)
|
@@ -300,7 +367,7 @@ Bug Fixes:
|
|
300
367
|
Bug Fixes:
|
301
368
|
|
302
369
|
* Prevent thread deadlock errors during proxy creation (e.g. when using
|
303
|
-
`before_verifying_doubles` callbacks). (Jon Rowe, #980, #979)
|
370
|
+
`before_verifying_doubles` callbacks). (Jon Rowe, rspec/rspec-mocks#980, rspec/rspec-mocks#979)
|
304
371
|
|
305
372
|
### 3.3.1 / 2015-06-19
|
306
373
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.3.0...v3.3.1)
|
@@ -310,7 +377,7 @@ Bug Fixes:
|
|
310
377
|
* Fix bug in `before_verifying_double` callback logic that caused it to be called
|
311
378
|
once for each class in the ancestor list when mocking or stubbing a class. Now
|
312
379
|
it is only called for the mocked or stubbed class, as you would expect. (Sam
|
313
|
-
Phippen, #974)
|
380
|
+
Phippen, rspec/rspec-mocks#974)
|
314
381
|
|
315
382
|
### 3.3.0 / 2015-06-12
|
316
383
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.1...v3.3.0)
|
@@ -319,45 +386,45 @@ Enhancements:
|
|
319
386
|
|
320
387
|
* When stubbing `new` on `MyClass` or `class_double(MyClass)`, use the
|
321
388
|
method signature from `MyClass#initialize` to verify arguments.
|
322
|
-
(Myron Marston, #886)
|
389
|
+
(Myron Marston, rspec/rspec-mocks#886)
|
323
390
|
* Use matcher descriptions when generating description of received arguments
|
324
|
-
for mock expectation failures. (Tim Wade, #891)
|
325
|
-
* Avoid loading `stringio` unnecessarily. (Myron Marston, #894)
|
391
|
+
for mock expectation failures. (Tim Wade, rspec/rspec-mocks#891)
|
392
|
+
* Avoid loading `stringio` unnecessarily. (Myron Marston, rspec/rspec-mocks#894)
|
326
393
|
* Verifying doubles failure messages now distinguish between class and instance
|
327
|
-
level methods. (Tim Wade, #896, #908)
|
394
|
+
level methods. (Tim Wade, rspec/rspec-mocks#896, rspec/rspec-mocks#908)
|
328
395
|
* Improve mock expectation failure messages so that it combines both
|
329
|
-
number of times and the received arguments in the output. (John Ceh, #918)
|
396
|
+
number of times and the received arguments in the output. (John Ceh, rspec/rspec-mocks#918)
|
330
397
|
* Improve how test doubles are represented in failure messages.
|
331
|
-
(Siva Gollapalli, Myron Marston, #932)
|
398
|
+
(Siva Gollapalli, Myron Marston, rspec/rspec-mocks#932)
|
332
399
|
* Rename `RSpec::Mocks::Configuration#when_declaring_verifying_double` to
|
333
400
|
`RSpec::Mocks::Configuration#before_verifying_doubles` and utilise when
|
334
|
-
verifying partial doubles. (Jon Rowe, #940)
|
401
|
+
verifying partial doubles. (Jon Rowe, rspec/rspec-mocks#940)
|
335
402
|
* Use rspec-support's `ObjectFormatter` for improved formatting of
|
336
403
|
arguments in failure messages so that, for example, full time
|
337
|
-
precisions is displayed for time objects. (Gavin Miller, Myron Marston, #955)
|
404
|
+
precisions is displayed for time objects. (Gavin Miller, Myron Marston, rspec/rspec-mocks#955)
|
338
405
|
|
339
406
|
Bug Fixes:
|
340
407
|
|
341
408
|
* Ensure expectations that raise eagerly also raise during RSpec verification.
|
342
409
|
This means that if exceptions are caught inside test execution the test will
|
343
|
-
still fail. (Sam Phippen, #884)
|
410
|
+
still fail. (Sam Phippen, rspec/rspec-mocks#884)
|
344
411
|
* Fix `have_received(msg).with(args).exactly(n).times` and
|
345
412
|
`receive(msg).with(args).exactly(n).times` failure messages
|
346
413
|
for when the message was received the wrong number of times with
|
347
414
|
the specified args, and also received additional times with other
|
348
415
|
arguments. Previously it confusingly listed the arguments as being
|
349
416
|
mis-matched (even when the double was allowed to receive with any
|
350
|
-
args) rather than listing the count. (John Ceh, #918)
|
417
|
+
args) rather than listing the count. (John Ceh, rspec/rspec-mocks#918)
|
351
418
|
* Fix `any_args`/`anything` support so that we avoid calling `obj == anything`
|
352
419
|
on user objects that may have improperly implemented `==` in a way that
|
353
|
-
raises errors. (Myron Marston, #924)
|
420
|
+
raises errors. (Myron Marston, rspec/rspec-mocks#924)
|
354
421
|
* Fix edge case involving stubbing the same method on a class and a subclass
|
355
|
-
which previously hit a `NoMethodError` internally in RSpec. (Myron Marston #954)
|
422
|
+
which previously hit a `NoMethodError` internally in RSpec. (Myron Marston rspec/rspec-mocks#954)
|
356
423
|
* Fix edge case where the message received count would be incremented multiple
|
357
|
-
times for one failure. (Myron Marston, #957)
|
424
|
+
times for one failure. (Myron Marston, rspec/rspec-mocks#957)
|
358
425
|
* Fix failure messages for when spies received the expected message with
|
359
|
-
different arguments and also received another message. (Maurício Linhares, #960)
|
360
|
-
* Silence whitespace-only diffs. (Myron Marston, #969)
|
426
|
+
different arguments and also received another message. (Maurício Linhares, rspec/rspec-mocks#960)
|
427
|
+
* Silence whitespace-only diffs. (Myron Marston, rspec/rspec-mocks#969)
|
361
428
|
|
362
429
|
### 3.2.1 / 2015-02-23
|
363
430
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.0...v3.2.1)
|
@@ -366,11 +433,11 @@ Bug Fixes:
|
|
366
433
|
|
367
434
|
* Add missing `rspec/support/differ` require so that rspec-mocks can be
|
368
435
|
used w/o rspec-expectations (which also loads the differ and hided the
|
369
|
-
fact we forgot to require it). (Myron Marston, #893)
|
436
|
+
fact we forgot to require it). (Myron Marston, rspec/rspec-mocks#893)
|
370
437
|
* Revert tracking of received arg mutation (added in 3.2.0 to provide an
|
371
438
|
error in a situation we can't support) as our implementation has side
|
372
439
|
effects on non-standard objects and there's no solution we could come
|
373
|
-
up with that always works. (Myron Marston, #900)
|
440
|
+
up with that always works. (Myron Marston, rspec/rspec-mocks#900)
|
374
441
|
|
375
442
|
### 3.2.0 / 2015-02-03
|
376
443
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.3...v3.2.0)
|
@@ -378,55 +445,55 @@ Bug Fixes:
|
|
378
445
|
Enhancements:
|
379
446
|
|
380
447
|
* Treat `any_args` as an arg splat, allowing it to match an arbitrary
|
381
|
-
number of args at any point in an arg list. (Myron Marston, #786)
|
448
|
+
number of args at any point in an arg list. (Myron Marston, rspec/rspec-mocks#786)
|
382
449
|
* Print diffs when arguments in mock expectations are mismatched.
|
383
|
-
(Sam Phippen, #751)
|
450
|
+
(Sam Phippen, rspec/rspec-mocks#751)
|
384
451
|
* Support names for verified doubles (`instance_double`, `instance_spy`,
|
385
452
|
`class_double`, `class_spy`, `object_double`, `object_spy`). (Cezary
|
386
|
-
Baginski, #826)
|
453
|
+
Baginski, rspec/rspec-mocks#826)
|
387
454
|
* Make `array_including` and `hash_including` argument matchers composable.
|
388
|
-
(Sam Phippen, #819)
|
455
|
+
(Sam Phippen, rspec/rspec-mocks#819)
|
389
456
|
* Make `allow_any_instance_of(...).to receive(...).and_wrap_original`
|
390
|
-
work. (Ryan Fitzgerald, #869)
|
457
|
+
work. (Ryan Fitzgerald, rspec/rspec-mocks#869)
|
391
458
|
|
392
459
|
Bug Fixes:
|
393
460
|
|
394
461
|
* Provide a clear error when users wrongly combine `no_args` with
|
395
462
|
additional arguments (e.g. `expect().to receive().with(no_args, 1)`).
|
396
|
-
(Myron Marston, #786)
|
463
|
+
(Myron Marston, rspec/rspec-mocks#786)
|
397
464
|
* Provide a clear error when users wrongly use `any_args` multiple times in the
|
398
465
|
same argument list (e.g. `expect().to receive().with(any_args, 1, any_args)`.
|
399
|
-
(Myron Marston, #786)
|
466
|
+
(Myron Marston, rspec/rspec-mocks#786)
|
400
467
|
* Prevent the error generator from using user object #description methods.
|
401
|
-
See [#685](https://github.com/rspec/rspec-mocks/issues/685).
|
402
|
-
(Sam Phippen, #751)
|
468
|
+
See [rspec/rspec-mocks#685](https://github.com/rspec/rspec-mocks/issues/685).
|
469
|
+
(Sam Phippen, rspec/rspec-mocks#751)
|
403
470
|
* Make verified doubles declared as `(instance|class)_double(SomeConst)`
|
404
471
|
work properly when `SomeConst` has previously been stubbed.
|
405
472
|
`(instance|class)_double("SomeClass")` already worked properly.
|
406
|
-
(Myron Marston, #824)
|
473
|
+
(Myron Marston, rspec/rspec-mocks#824)
|
407
474
|
* Add a matcher description for `receive`, `receive_messages` and
|
408
|
-
`receive_message_chain`. (Myron Marston, #828)
|
475
|
+
`receive_message_chain`. (Myron Marston, rspec/rspec-mocks#828)
|
409
476
|
* Validate invocation args for null object verified doubles.
|
410
|
-
(Myron Marston, #829)
|
477
|
+
(Myron Marston, rspec/rspec-mocks#829)
|
411
478
|
* Fix `RSpec::Mocks::Constant.original` when called with an invalid
|
412
479
|
constant to return an object indicating the constant name is invalid,
|
413
|
-
rather than blowing up. (Myron Marston, #833)
|
480
|
+
rather than blowing up. (Myron Marston, rspec/rspec-mocks#833)
|
414
481
|
* Make `extend RSpec::Mocks::ExampleMethods` on any object work properly
|
415
482
|
to add the rspec-mocks API to that object. Previously, `expect` would
|
416
|
-
be undefined. (Myron Marston, #846)
|
483
|
+
be undefined. (Myron Marston, rspec/rspec-mocks#846)
|
417
484
|
* Fix `require 'rspec/mocks/standalone'` so that it only affects `main`
|
418
485
|
and not every object. It's really only intended to be used in a REPL
|
419
486
|
like IRB, but some gems have loaded it, thinking it needs to be loaded
|
420
487
|
when using rspec-mocks outside the context of rspec-core.
|
421
|
-
(Myron Marston, #846)
|
488
|
+
(Myron Marston, rspec/rspec-mocks#846)
|
422
489
|
* Prevent message expectations from being modified by customization methods
|
423
|
-
(e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, #837)
|
490
|
+
(e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, rspec/rspec-mocks#837)
|
424
491
|
* Handle cases where a method stub cannot be removed due to something
|
425
492
|
external to RSpec monkeying with the method definition. This can
|
426
493
|
happen, for example, when you `file.reopen(io)` after previously
|
427
|
-
stubbing a method on the `file` object. (Myron Marston, #853)
|
494
|
+
stubbing a method on the `file` object. (Myron Marston, rspec/rspec-mocks#853)
|
428
495
|
* Provide a clear error when received message args are mutated before
|
429
|
-
a `have_received(...).with(...)` expectation. (Myron Marston, #868)
|
496
|
+
a `have_received(...).with(...)` expectation. (Myron Marston, rspec/rspec-mocks#868)
|
430
497
|
|
431
498
|
### 3.1.3 / 2014-10-08
|
432
499
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.2...v3.1.3)
|
@@ -434,13 +501,13 @@ Bug Fixes:
|
|
434
501
|
Bug Fixes:
|
435
502
|
|
436
503
|
* Correct received messages count when used with `have_received` matcher.
|
437
|
-
(Jon Rowe, #793)
|
504
|
+
(Jon Rowe, rspec/rspec-mocks#793)
|
438
505
|
* Provide a clear error message when you use `allow_any_instance_of(...)` or
|
439
506
|
`expect_any_instance_of(...)` with the `have_received` matcher (they are
|
440
507
|
not intended to be used together and previously caused an odd internal
|
441
|
-
failure in rspec-mocks). (Jon Rowe, #799).
|
508
|
+
failure in rspec-mocks). (Jon Rowe, rspec/rspec-mocks#799).
|
442
509
|
* Fix verified double `with` verification so that it applies to method
|
443
|
-
stubs. (Myron Marston, #790)
|
510
|
+
stubs. (Myron Marston, rspec/rspec-mocks#790)
|
444
511
|
|
445
512
|
### 3.1.2 / 2014-09-26
|
446
513
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.1...v3.1.2)
|
@@ -449,7 +516,7 @@ Bug Fixes:
|
|
449
516
|
|
450
517
|
* Provide a clear error message when you use `allow(...)` with the
|
451
518
|
`have_received` matcher (they are not intended to be used together
|
452
|
-
and previously caused an odd internal failure in rspec-mocks). (Jon Rowe, #788).
|
519
|
+
and previously caused an odd internal failure in rspec-mocks). (Jon Rowe, rspec/rspec-mocks#788).
|
453
520
|
|
454
521
|
### 3.1.1 / 2014-09-18
|
455
522
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.0...v3.1.1)
|
@@ -457,7 +524,7 @@ Bug Fixes:
|
|
457
524
|
Bug Fixes:
|
458
525
|
|
459
526
|
* Prevent included modules being detected as prepended modules on Ruby 2.0
|
460
|
-
when using `any_instance_of(...)`. (Tony Novak, #781)
|
527
|
+
when using `any_instance_of(...)`. (Tony Novak, rspec/rspec-mocks#781)
|
461
528
|
|
462
529
|
### 3.1.0 / 2014-09-04
|
463
530
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.4...v3.1.0)
|
@@ -466,24 +533,24 @@ Enhancements:
|
|
466
533
|
|
467
534
|
* Add spying methods (`spy`, `ìnstance_spy`, `class_spy` and `object_spy`)
|
468
535
|
which create doubles as null objects for use with spying in testing. (Sam
|
469
|
-
Phippen, #671)
|
536
|
+
Phippen, rspec/rspec-mocks#671)
|
470
537
|
* `have_received` matcher will raise "does not implement" errors correctly when
|
471
|
-
used with verifying doubles and partial doubles. (Xavier Shay, #722)
|
538
|
+
used with verifying doubles and partial doubles. (Xavier Shay, rspec/rspec-mocks#722)
|
472
539
|
* Allow matchers to be used in place of keyword arguments in `with`
|
473
|
-
expectations. (Xavier Shay, #726)
|
540
|
+
expectations. (Xavier Shay, rspec/rspec-mocks#726)
|
474
541
|
* Add `thrice` modifier to message expectation interface as a synonym
|
475
|
-
for `exactly(3).times`. (Dennis Taylor, #753)
|
542
|
+
for `exactly(3).times`. (Dennis Taylor, rspec/rspec-mocks#753)
|
476
543
|
* Add more `thrice` synonyms e.g. `.at_least(:thrice)`, `.at_most(:thrice)`,
|
477
|
-
`receive(...).thrice` and `have_received(...).thrice`. (Jon Rowe, #754)
|
544
|
+
`receive(...).thrice` and `have_received(...).thrice`. (Jon Rowe, rspec/rspec-mocks#754)
|
478
545
|
* Add `and_wrap_original` modifier for partial doubles to mutate the
|
479
|
-
response from a method. (Jon Rowe, #762)
|
546
|
+
response from a method. (Jon Rowe, rspec/rspec-mocks#762)
|
480
547
|
|
481
548
|
Bug Fixes:
|
482
549
|
|
483
550
|
* Remove `any_number_of_times` from `any_instance` recorders that were
|
484
|
-
erroneously causing mention of the method in documentation. (Jon Rowe, #760)
|
551
|
+
erroneously causing mention of the method in documentation. (Jon Rowe, rspec/rspec-mocks#760)
|
485
552
|
* Prevent included modules being detected as prepended modules on Ruby 2.0.
|
486
|
-
(Eugene Kenny, #771)
|
553
|
+
(Eugene Kenny, rspec/rspec-mocks#771)
|
487
554
|
|
488
555
|
### 3.0.4 / 2014-08-14
|
489
556
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.3...v3.0.4)
|
@@ -491,7 +558,7 @@ Bug Fixes:
|
|
491
558
|
Bug Fixes:
|
492
559
|
|
493
560
|
* Restore `kind_of(x)` to match using `arg.kind_of?(x)` (like RSpec 2)
|
494
|
-
rather than `x === arg`. (Jon Rowe, #750)
|
561
|
+
rather than `x === arg`. (Jon Rowe, rspec/rspec-mocks#750)
|
495
562
|
|
496
563
|
### 3.0.3 / 2014-07-21
|
497
564
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.2...v3.0.3)
|
@@ -499,10 +566,10 @@ Bug Fixes:
|
|
499
566
|
Bug Fixes:
|
500
567
|
|
501
568
|
* `have_received` matcher will raise "does not implement" errors correctly when
|
502
|
-
used with verifying doubles and partial doubles. (Xavier Shay, #722)
|
569
|
+
used with verifying doubles and partial doubles. (Xavier Shay, rspec/rspec-mocks#722)
|
503
570
|
* Make `double.as_null_object.dup` and `double.as_null_object.clone`
|
504
|
-
make the copies be null objects. (Myron Marston, #732)
|
505
|
-
* Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, #739)
|
571
|
+
make the copies be null objects. (Myron Marston, rspec/rspec-mocks#732)
|
572
|
+
* Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, rspec/rspec-mocks#739)
|
506
573
|
|
507
574
|
### 3.0.2 / 2014-06-19
|
508
575
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.1...v3.0.2)
|
@@ -510,11 +577,11 @@ Bug Fixes:
|
|
510
577
|
Bug Fixes:
|
511
578
|
|
512
579
|
* Fix edge case that triggered "can't add a new key into hash during
|
513
|
-
iteration" during mock verification. (Sam Phippen, Myron Marston, #711)
|
580
|
+
iteration" during mock verification. (Sam Phippen, Myron Marston, rspec/rspec-mocks#711)
|
514
581
|
* Fix verifying doubles so that when they accidentally leak into another
|
515
582
|
example, they provide the same clear error message that normal doubles
|
516
|
-
do. (Myron Marston, #718)
|
517
|
-
* Make `ordered` work with exact receive counts. (Sam Phippen, #713)
|
583
|
+
do. (Myron Marston, rspec/rspec-mocks#718)
|
584
|
+
* Make `ordered` work with exact receive counts. (Sam Phippen, rspec/rspec-mocks#713)
|
518
585
|
|
519
586
|
### 3.0.1 / 2014-06-07
|
520
587
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0...v3.0.1)
|
@@ -522,10 +589,10 @@ Bug Fixes:
|
|
522
589
|
Bug Fixes:
|
523
590
|
|
524
591
|
* Fix `receive_message_chain(...)` so that it supports `with` just like
|
525
|
-
`stub_chain` did. (Jon Rowe, #697)
|
592
|
+
`stub_chain` did. (Jon Rowe, rspec/rspec-mocks#697)
|
526
593
|
* Fix regression in `expect_any_instance_of` so that it expects the
|
527
594
|
message on _any_ instance rather than on _every_ instance.
|
528
|
-
(Myron Marston, #699)
|
595
|
+
(Myron Marston, rspec/rspec-mocks#699)
|
529
596
|
|
530
597
|
### 3.0.0 / 2014-06-01
|
531
598
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.rc1...v3.0.0)
|
@@ -738,14 +805,14 @@ Bug Fixes:
|
|
738
805
|
|
739
806
|
Bug Fixes:
|
740
807
|
|
741
|
-
* Add missing deprecation for using `with` with no arguments e.g. `with()`. (Yousuke, #970)
|
808
|
+
* Add missing deprecation for using `with` with no arguments e.g. `with()`. (Yousuke, rspec/rspec-mocks#970)
|
742
809
|
|
743
810
|
### 2.99.3 / 2015-01-09
|
744
811
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.2...v2.99.3)
|
745
812
|
|
746
813
|
Bug Fixes:
|
747
814
|
|
748
|
-
* Fix regression that caused an error when a test double was deserialized from YAML. (Yuji Nakayama, #777)
|
815
|
+
* Fix regression that caused an error when a test double was deserialized from YAML. (Yuji Nakayama, rspec/rspec-mocks#777)
|
749
816
|
|
750
817
|
### 2.99.2 / 2014-07-21
|
751
818
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.1...v2.99.2)
|
@@ -753,7 +820,7 @@ Bug Fixes:
|
|
753
820
|
Enhancements:
|
754
821
|
|
755
822
|
* Warn about upcoming change to `#===` matching and `DateTime#===` behaviour.
|
756
|
-
(Jon Rowe, #735)
|
823
|
+
(Jon Rowe, rspec/rspec-mocks#735)
|
757
824
|
|
758
825
|
### 2.99.1 / 2014-06-12
|
759
826
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0...v2.99.1)
|
@@ -761,11 +828,11 @@ Enhancements:
|
|
761
828
|
Bug Fixes:
|
762
829
|
|
763
830
|
* Fix bug that caused errors at the end of each example
|
764
|
-
when a `double.as_null_object` had been frozen. (Yuji Nakayama, #698)
|
831
|
+
when a `double.as_null_object` had been frozen. (Yuji Nakayama, rspec/rspec-mocks#698)
|
765
832
|
|
766
833
|
Deprecations:
|
767
834
|
|
768
|
-
* Deprecate freezing a test double. (Yuji Nakayama, #698)
|
835
|
+
* Deprecate freezing a test double. (Yuji Nakayama, rspec/rspec-mocks#698)
|
769
836
|
|
770
837
|
### 2.99.0 / 2014-06-01
|
771
838
|
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.rc1...v2.99.0)
|
@@ -941,8 +1008,8 @@ Bug fixes
|
|
941
1008
|
* Fix `Marshal.dump` extension so that it correctly handles nil.
|
942
1009
|
(Luke Imhoff, Jon Rowe)
|
943
1010
|
* Fix isolation of `allow_message_expectations_on_nil` (Jon Rowe)
|
944
|
-
* Use inspect to format actual arguments on expectations in failure messages (#280, Ben Langfeld)
|
945
|
-
* Protect against improperly initialised test doubles (#293) (Joseph Shraibman and Jon Rowe)
|
1011
|
+
* Use inspect to format actual arguments on expectations in failure messages (rspec/rspec-mocks#280, Ben Langfeld)
|
1012
|
+
* Protect against improperly initialised test doubles (rspec/rspec-mocks#293) (Joseph Shraibman and Jon Rowe)
|
946
1013
|
|
947
1014
|
Deprecations
|
948
1015
|
|
@@ -1124,7 +1191,7 @@ Bug fixes
|
|
1124
1191
|
|
1125
1192
|
* Allow a `as_null_object` to be passed to `with`
|
1126
1193
|
* Pass proc to block passed to stub (Aubrey Rhodes)
|
1127
|
-
* Initialize child message expectation args to match any args (#109 -
|
1194
|
+
* Initialize child message expectation args to match any args (rspec/rspec-mocks#109 -
|
1128
1195
|
preethiramdev)
|
1129
1196
|
|
1130
1197
|
### 2.8.0 / 2012-01-04
|