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