Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 928 lines (710 sloc) 38.621 kb
990b017 @myronmarston When stubbing `MyClass.new` verify against `MyClass#initialize`.
myronmarston authored
1 ### 3.3.0 Development
c455fc5 @myronmarston Forwardport 3.2.1 release notes.
myronmarston authored
2 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.1...master)
990b017 @myronmarston When stubbing `MyClass.new` verify against `MyClass#initialize`.
myronmarston authored
3
4 Enhancements:
5
6 * When stubbing `new` on `MyClass` or `class_double(MyClass)`, use the
7 method signature from `MyClass#initialize` to verify arguments.
8 (Myron Marston, #886)
ddb4c20 @myronmarston Clarify changelog for #891.
myronmarston authored
9 * Use matcher descriptions when generating description of received arguments
10 for mock expectation failures. (Tim Wade, #891)
394d373 @myronmarston Don’t load stringio unnecessarily.
myronmarston authored
11 * Avoid loading `stringio` unnecessarily. (Myron Marston, #894)
149293e @JonRowe change for #896
JonRowe authored
12 * Verifying doubles failure messages now distinguish between class and instance
fbaf33e @myronmarston Update changelog to mention #908.
myronmarston authored
13 level methods. (Tim Wade, #896, #908)
97703a8 @myronmarston Add changelog entries for #918.
myronmarston authored
14 * Improve mock expectation failure messages so that it combines both
15 number of times and the received arguments in the output. (John Ceh, #918)
3d9fb62 @myronmarston Add changelog entry.
myronmarston authored
16 * Improve how test doubles are represented in failure messages.
17 (@sivagollapalli, Myron Marston, #932)
990b017 @myronmarston When stubbing `MyClass.new` verify against `MyClass#initialize`.
myronmarston authored
18
b5e514d @samphippen Fix changelog entry for #884
samphippen authored
19 Bug Fixes:
20
21 * Ensure expectations that raise eagerly also raise during RSpec verification.
22 This means that if exceptions are caught inside test execution the test will
23 still fail. (Sam Phippen, #884)
97703a8 @myronmarston Add changelog entries for #918.
myronmarston authored
24 * Fix `have_received(msg).with(args).exactly(n).times` and
25 `receive(msg).with(args).exactly(n).times` failure messages
26 for when the message was received the wrong number of times with
27 the specified args, and also received additional times with other
28 arguments. Previously it confusingly listed the arguments as being
29 mis-matched (even when the double was allowed to receive with any
30 args) rather than listing the count. (John Ceh, #918)
27b9402 @myronmarston Prefer `anything == object` over `object == anything`.
myronmarston authored
31 * Fix `any_args`/`anything` support so that we avoid calling `obj == anything`
32 on user objects that may have improperly implemented `==` in a way that
33 raises errors. (Myron Marston, #924)
b5e514d @samphippen Fix changelog entry for #884
samphippen authored
34
c455fc5 @myronmarston Forwardport 3.2.1 release notes.
myronmarston authored
35 ### 3.2.1 / 2015-02-23
36 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.2.0...v3.2.1)
37
38 Bug Fixes:
39
40 * Add missing `rspec/support/differ` require so that rspec-mocks can be
41 used w/o rspec-expectations (which also loads the differ and hided the
42 fact we forgot to require it). (Myron Marston, #893)
43 * Revert tracking of received arg mutation (added in 3.2.0 to provide an
44 error in a situation we can't support) as our implementation has side
45 effects on non-standard objects and there's no solution we could come
46 up with that always works. (Myron Marston, #900)
47
90cb471 @myronmarston Update changelog for v3.2.0 [ci skip]
myronmarston authored
48 ### 3.2.0 / 2015-02-03
49 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.3...v3.2.0)
94dda94 @JonRowe changelog for #781
JonRowe authored
50
3bd71e8 @myronmarston Fix changelog.
myronmarston authored
51 Enhancements:
52
53 * Treat `any_args` as an arg splat, allowing it to match an arbitrary
54 number of args at any point in an arg list. (Myron Marston, #786)
29ee51d @samphippen Add a changelog entry for #751
samphippen authored
55 * Print diffs when arguments in mock expectations are mismatched.
56 (Sam Phippen, #751)
a454e6f @myronmarston Add changelog entry for #826.
myronmarston authored
57 * Support names for verified doubles (`instance_double`, `instance_spy`,
58 `class_double`, `class_spy`, `object_double`, `object_spy`). (Cezary
59 Baginski, #826)
1acff37 @samphippen Changelog entry for #819
samphippen authored
60 * Make `array_including` and `hash_including` argument matchers composable.
61 (Sam Phippen, #819)
65d3b65 @myronmarston Add changelog for #869.
myronmarston authored
62 * Make `allow_any_instance_of(...).to receive(...).and_wrap_original`
63 work. (Ryan Fitzgerald, #869)
3bd71e8 @myronmarston Fix changelog.
myronmarston authored
64
fe697fc @JonRowe fixup changelog after #793
JonRowe authored
65 Bug Fixes:
66
883d2a6 @myronmarston Forwardport 3.1.3 release notes.
myronmarston authored
67 * Provide a clear error when users wrongly combine `no_args` with
68 additional arguments (e.g. `expect().to receive().with(no_args, 1)`).
69 (Myron Marston, #786)
70 * Provide a clear error when users wrongly use `any_args` multiple times in the
71 same argument list (e.g. `expect().to receive().with(any_args, 1, any_args)`.
72 (Myron Marston, #786)
29ee51d @samphippen Add a changelog entry for #751
samphippen authored
73 * Prevent the error generator from using user object #description methods.
74 See [#685](https://github.com/rspec/rspec-mocks/issues/685).
75 (Sam Phippen, #751)
288eea4 @myronmarston Fix verified doubles when their const has already been stubbed.
myronmarston authored
76 * Make verified doubles declared as `(instance|class)_double(SomeConst)`
77 work properly when `SomeConst` has previously been stubbed.
78 `(instance|class)_double("SomeClass")` already worked properly.
79 (Myron Marston, #824)
626ecd5 @myronmarston Add changelog entry.
myronmarston authored
80 * Add a matcher description for `receive`, `receive_messages` and
81 `receive_message_chain`. (Myron Marston, #828)
04e048f @myronmarston Validate invocation args for verified null object doubles.
myronmarston authored
82 * Validate invocation args for null object verified doubles.
83 (Myron Marston, #829)
689878e @myronmarston Make `RSpec::Mocks::Constant.original(name)` handle invalid names gracef...
myronmarston authored
84 * Fix `RSpec::Mocks::Constant.original` when called with an invalid
85 constant to return an object indicating the constant name is invalid,
86 rather than blowing up. (Myron Marston, #833)
ac99800 @myronmarston Fix standalone so it doesn’t infect other objects.
myronmarston authored
87 * Make `extend RSpec::Mocks::ExampleMethods` on any object work properly
88 to add the rspec-mocks API to that object. Previously, `expect` would
89 be undefined. (Myron Marston, #846)
90 * Fix `require 'rspec/mocks/standalone'` so that it only affects `main`
91 and not every object. It's really only intended to be used in a REPL
92 like IRB, but some gems have loaded it, thinking it needs to be loaded
93 when using rspec-mocks outside the context of rspec-core.
94 (Myron Marston, #846)
3f1124e @samphippen Changelog entry for #837
samphippen authored
95 * Prevent message expectations from being modified by customization methods
96 (e.g. `with`) after they have been invoked. (Sam Phippen and Melanie Gilman, #837)
5a0a48c @myronmarston Handle stubbing IO#write and then calling IO#reopen.
myronmarston authored
97 * Handle cases where a method stub cannot be removed due to something
98 external to RSpec monkeying with the method definition. This can
99 happen, for example, when you `file.reopen(io)` after previously
100 stubbing a method on the `file` object. (Myron Marston, #853)
ed3fb3b @myronmarston Provide a clear error when received message args are mutated.
myronmarston authored
101 * Provide a clear error when received message args are mutated before
102 a `have_received(...).with(...)` expectation. (Myron Marston, #868)
883d2a6 @myronmarston Forwardport 3.1.3 release notes.
myronmarston authored
103
104 ### 3.1.3 / 2014-10-08
105 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.2...v3.1.3)
106
107 Bug Fixes:
108
3bd71e8 @myronmarston Fix changelog.
myronmarston authored
109 * Correct received messages count when used with `have_received` matcher.
fe697fc @JonRowe fixup changelog after #793
JonRowe authored
110 (Jon Rowe, #793)
9664eaf @JonRowe changelog for #799
JonRowe authored
111 * Provide a clear error message when you use `allow_any_instance_of(...)` or
112 `expect_any_instance_of(...)` with the `have_received` matcher (they are
113 not intended to be used together and previously caused an odd internal
883d2a6 @myronmarston Forwardport 3.1.3 release notes.
myronmarston authored
114 failure in rspec-mocks). (Jon Rowe, #799).
d8a7c28 @myronmarston Fix verified double `with` verification for method stubs.
myronmarston authored
115 * Fix verified double `with` verification so that it applies to method
116 stubs. (Myron Marston, #790)
fe697fc @JonRowe fixup changelog after #793
JonRowe authored
117
06a490e @myronmarston Forwardport 3.1.2 release notes.
myronmarston authored
118 ### 3.1.2 / 2014-09-26
119 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.1...v3.1.2)
120
121 Bug Fixes:
085d79a @JonRowe changelog for #788
JonRowe authored
122
06a490e @myronmarston Forwardport 3.1.2 release notes.
myronmarston authored
123 * Provide a clear error message when you use `allow(...)` with the
124 `have_received` matcher (they are not intended to be used together
125 and previously caused an odd internal failure in rspec-mocks). (Jon Rowe, #788).
085d79a @JonRowe changelog for #788
JonRowe authored
126
7db36a6 @myronmarston Forwardport 3.1.1 release notes.
myronmarston authored
127 ### 3.1.1 / 2014-09-18
128 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.1.0...v3.1.1)
129
130 Bug Fixes:
94dda94 @JonRowe changelog for #781
JonRowe authored
131
132 * Prevent included modules being detected as prepended modules on Ruby 2.0
7db36a6 @myronmarston Forwardport 3.1.1 release notes.
myronmarston authored
133 when using `any_instance_of(...)`. (Tony Novak, #781)
94dda94 @JonRowe changelog for #781
JonRowe authored
134
06fbd3d @myronmarston 3.1.0 release.
myronmarston authored
135 ### 3.1.0 / 2014-09-04
136 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.4...v3.1.0)
0fd2266 @samphippen Adds spying methods to the RSpec Mocks DSL
samphippen authored
137
138 Enhancements:
139
140 * Add spying methods (`spy`, `ìnstance_spy`, `class_spy` and `object_spy`)
141 which create doubles as null objects for use with spying in testing. (Sam
142 Phippen, #671)
e96c8c5 @xaviershay `have_received` matcher will raise "does not implement" errors correctly...
xaviershay authored
143 * `have_received` matcher will raise "does not implement" errors correctly when
144 used with verifying doubles and partial doubles. (Xavier Shay, #722)
0d2f599 @xaviershay Allow matchers to be used in place of keyword arguments in `with` expect...
xaviershay authored
145 * Allow matchers to be used in place of keyword arguments in `with`
146 expectations. (Xavier Shay, #726)
1c947af @myronmarston Fixup changelog a bit.
myronmarston authored
147 * Add `thrice` modifier to message expectation interface as a synonym
148 for `exactly(3).times`. (Dennis Taylor, #753)
b67badd @JonRowe changelog for #754
JonRowe authored
149 * Add more `thrice` synonyms e.g. `.at_least(:thrice)`, `.at_most(:thrice)`,
150 `receive(...).thrice` and `have_received(...).thrice`. (Jon Rowe, #754)
c0a1b61 @JonRowe Changelog for #762
JonRowe authored
151 * Add `and_wrap_original` modifier for partial doubles to mutate the
152 response from a method. (Jon Rowe, #762)
0fd2266 @samphippen Adds spying methods to the RSpec Mocks DSL
samphippen authored
153
7db36a6 @myronmarston Forwardport 3.1.1 release notes.
myronmarston authored
154 Bug Fixes:
39f9383 @JonRowe changelog for #760
JonRowe authored
155
156 * Remove `any_number_of_times` from `any_instance` recorders that were
157 erroneously causing mention of the method in documentation. (Jon Rowe, #760)
c783627 @JonRowe changelog for #771
JonRowe authored
158 * Prevent included modules being detected as prepended modules on Ruby 2.0.
159 (Eugene Kenny, #771)
39f9383 @JonRowe changelog for #760
JonRowe authored
160
09a1b64 @myronmarston Forwardport 3.0.4 release notes.
myronmarston authored
161 ### 3.0.4 / 2014-08-14
162 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.3...v3.0.4)
d7052ed @JonRowe fixup changelog post 3.0.3 release
JonRowe authored
163
164 Bug Fixes:
09a1b64 @myronmarston Forwardport 3.0.4 release notes.
myronmarston authored
165
166 * Restore `kind_of(x)` to match using `arg.kind_of?(x)` (like RSpec 2)
167 rather than `x === arg`. (Jon Rowe, #750)
d7052ed @JonRowe fixup changelog post 3.0.3 release
JonRowe authored
168
169 ### 3.0.3 / 2014-07-21
170 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.2...v3.0.3)
b7c8169 @myronmarston Preserve null objectness when copying test doubles.
myronmarston authored
171
172 Bug Fixes:
173
d7052ed @JonRowe fixup changelog post 3.0.3 release
JonRowe authored
174 * `have_received` matcher will raise "does not implement" errors correctly when
175 used with verifying doubles and partial doubles. (Xavier Shay, #722)
b7c8169 @myronmarston Preserve null objectness when copying test doubles.
myronmarston authored
176 * Make `double.as_null_object.dup` and `double.as_null_object.clone`
177 make the copies be null objects. (Myron Marston, #732)
d7052ed @JonRowe fixup changelog post 3.0.3 release
JonRowe authored
178 * Don't inadvertently define `BasicObject` in 1.8.7. (Chris Griego, #739)
b7c8169 @myronmarston Preserve null objectness when copying test doubles.
myronmarston authored
179
427e85c @myronmarston Forwardport 3.0.2 release notes.
myronmarston authored
180 ### 3.0.2 / 2014-06-19
181 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.1...v3.0.2)
4c0839a @myronmarston Add changelog for #711.
myronmarston authored
182
183 Bug Fixes:
184
58a8f69 @myronmarston Don’t use smart quotes.
myronmarston authored
185 * Fix edge case that triggered "can't add a new key into hash during
4c0839a @myronmarston Add changelog for #711.
myronmarston authored
186 iteration" during mock verification. (Sam Phippen, Myron Marston, #711)
8f50ed4 @myronmarston Verifying doubles should expire just like normal doubles.
myronmarston authored
187 * Fix verifying doubles so that when they accidentally leak into another
188 example, they provide the same clear error message that normal doubles
189 do. (Myron Marston, #718)
b834997 @myronmarston Changelog fixups.
myronmarston authored
190 * Make `ordered` work with exact receive counts. (Sam Phippen, #713)
4c0839a @myronmarston Add changelog for #711.
myronmarston authored
191
9a49ffd @myronmarston Fix typo.
myronmarston authored
192 ### 3.0.1 / 2014-06-07
8152a6a @myronmarston Release 3.0.1.
myronmarston authored
193 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0...v3.0.1)
4f55dc6 @JonRowe changelog for #697
JonRowe authored
194
5ba9e26 @JonRowe correct to changelog for #697
JonRowe authored
195 Bug Fixes:
4f55dc6 @JonRowe changelog for #697
JonRowe authored
196
ce70e97 @myronmarston Reword changelog entry to explain why it’s a bug fix.
myronmarston authored
197 * Fix `receive_message_chain(...)` so that it supports `with` just like
198 `stub_chain` did. (Jon Rowe, #697)
f7d15b4 @myronmarston Fix regression in `expect_any_instance_of`.
myronmarston authored
199 * Fix regression in `expect_any_instance_of` so that it expects the
200 message on _any_ instance rather than on _every_ instance.
201 (Myron Marston, #699)
4f55dc6 @JonRowe changelog for #697
JonRowe authored
202
0cd5679 @myronmarston Update changelog for v3.0.0. [ci skip]
myronmarston authored
203 ### 3.0.0 / 2014-06-01
204 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.rc1...v3.0.0)
ee7ccd4 @myronmarston Fix prepended module detection.
myronmarston authored
205
206 Bug Fixes:
207
208 * Fix module prepend detection to work properly on ruby 2.0 for a case
209 where a module is extended onto itself. (Myron Marston)
06a0196 @myronmarston Remove transferred nested constants on reset.
myronmarston authored
210 * Fix `transfer_nested_constants` option so that transferred constants
211 get properly reset at the end of the example. (Myron Marston)
e62d011 @myronmarston Fix `config.transfer_nested_constants = true`.
myronmarston authored
212 * Fix `config.transfer_nested_constants = true` so that you don't
213 erroneously get errors when stubbing a constant that is not a module
214 or a class. (Myron Marston)
829b0de @myronmarston Add spec to prevent future regressions of #687.
myronmarston authored
215 * Fix regression that caused `double(:class => SomeClass)` to later
216 trigger infinite recursion. (Myron Marston)
5047865 @myronmarston Fix `have_received(...).with(...).ordered`.
myronmarston authored
217 * Fix bug in `have_received(...).with(...).ordered` where it was not
218 taking the args into account when checking the order. (Myron Marston)
15f90d9 @myronmarston Fix bug in `have_received(...).ordered`.
myronmarston authored
219 * Fix bug in `have_received(...).ordered` where it was wrongly
220 considering stubs when checking the order. (Myron Marston)
22dadf4 @JonRowe specify received counts are correct and split expected/actual formatting...
JonRowe authored
221 * Message expectation matchers now show descriptions from argument
222 matchers when their expectations aren't met. (Jon Rowe)
ce8a4f4 @JonRowe changelog for #684 and tidy up message
JonRowe authored
223 * Display warning when encountering `TypeError` during instance method
224 staging on 2.0.0-p195, suffers from https://bugs.ruby-lang.org/issues/8686
225 too. (Cezar Halmagean).
226
2596cee @myronmarston Prep changelog for 3.0.0.rc1 [ci skip]
myronmarston authored
227 ### 3.0.0.rc1 / 2014-05-18
228 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.beta2...v3.0.0.rc1)
9343ade @myronmarston Prepare changelog for 3.0.0.rc1 development.
myronmarston authored
229
bc573f4 @myronmarston Remove `TestDouble.extend_onto`.
myronmarston authored
230 Breaking Changes for 3.0.0:
231
232 * Remove `RSpec::Mocks::TestDouble.extend_onto`. (Myron Marston)
be3b0a4 @JonRowe changelog entry for removal of ConstantStubber
JonRowe authored
233 * Remove `RSpec::Mocks::ConstantStubber`. (Jon Rowe)
8a9bba3 @xaviershay Make Marshal monkey-patch opt-in.
xaviershay authored
234 * Make monkey-patch of Marshal to support dumping of stubbed objects opt-in.
235 (Xavier Shay)
bc573f4 @myronmarston Remove `TestDouble.extend_onto`.
myronmarston authored
236
0ea047b @bestie Make frozen warnings work
bestie authored
237 Enhancements:
238
239 * Instead of crashing when cleaning up stub methods on a frozen object, it now
240 issues a warning explaining that it's impossible to clean up the stubs.
241 (Justin Coyne and Sam Phippen)
e65aede @JonRowe changelog for #617
JonRowe authored
242 * Add meaningful descriptions to `anything`, `duck_type` and `instance_of` argument
243 matchers. (Jon Rowe)
0ea047b @bestie Make frozen warnings work
bestie authored
244
8d2e4e5 @myronmarston Null object `to_str` should return a string.
myronmarston authored
245 Bug Fixes:
246
2de265c @JonRowe fix typo
JonRowe authored
247 * Fix regression introduced in 3.0.0.beta2 that caused
8d2e4e5 @myronmarston Null object `to_str` should return a string.
myronmarston authored
248 `double.as_null_object.to_str` to return the double rather
249 than a string. (Myron Marston)
1183cbf @myronmarston Add changelog entry for #523.
myronmarston authored
250 * Fix bug in `expect(dbl).to receive_message_chain(:foo, :bar)` where it was
251 not setting an expectation for the last message in the chain.
252 (Jonathan del Strother)
2891fbb @xaviershay Include private methods when checking for implementation in verifying pa...
xaviershay authored
253 * Allow verifying partial doubles to have private methods stubbed. (Xavier Shay)
e4c76e9 @JonRowe Fix stubbing so it works with a prepended module.
JonRowe authored
254 * Fix bug with allowing/expecting messages on Class objects which have had
255 their singleton class prepended to. (Jon Rowe)
a3223c9 @JonRowe changelog and comments for #626
JonRowe authored
256 * Fix an issue with 1.8.7 not running implementation blocks on partial doubles.
257 (Maurício Linhares)
4ed12e7 @JonRowe changelog for #630
JonRowe authored
258 * Prevent `StackLevelTooDeep` errors when stubbing an `any_instance` method that's
259 accessed in `inspect` by providing our own inspect output. (Jon Rowe)
6cef313 @orend fix a small typo in changelog
orend authored
260 * Fix bug in `any_instance` logic that did not allow you to mock or stub
8eb3f9e @myronmarston Add changelog entry for #641.
myronmarston authored
261 private methods if `verify_partial_doubles` was configured. (Oren Dobzinski)
74ff41f @xaviershay Provide a failure message when trying to observe an unimplemented method...
xaviershay authored
262 * Include useful error message when trying to observe an unimplemented method
263 on an any instance. (Xavier Shay)
9ec1132 @myronmarston Changelog for #649.
myronmarston authored
264 * Fix `and_call_original` to work properly when multiple classes in an
265 inheritance hierarchy have been stubbed with the same method. (Myron Marston)
e00d6d7 @myronmarston Make `any_instance` update existing instance stubs.
myronmarston authored
266 * Fix `any_instance` so that it updates existing instances that have
267 already been stubbed. (Myron Marston)
b5106c9 @myronmarston Changelog for #659.
myronmarston authored
268 * Fix verified doubles so that their class name is included in failure
269 messages. (Myron Marston)
641bf87 @myronmarston Add changelog entry.
myronmarston authored
270 * Fix `expect_any_instance_of` so that when the message is received
271 on an individual instance that has been directly stubbed, it still
272 satisfies the expectation. (Sam Phippen, Myron Marston)
8b757c2 @myronmarston Disallow `any_instance` for a method defined on a prepended module.
myronmarston authored
273 * Explicitly disallow using `any_instance` to mock or stub a method
274 that is defined on a module prepended onto the class. This triggered
275 `SystemStackError` before and is very hard to support so we are not
276 supporting it at this time. (Myron Marston)
8d2e4e5 @myronmarston Null object `to_str` should return a string.
myronmarston authored
277
d40221e @myronmarston Update changelog for 3.0.0.beta2 release. [ci skip]
myronmarston authored
278 ### 3.0.0.beta2 / 2014-02-17
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
279 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.0.0.beta1...v3.0.0.beta2)
4cbc14a @myronmarston Fixup changelog.
myronmarston authored
280
281 Breaking Changes for 3.0.0:
282
283 * Rename `RSpec::Mocks::Mock` to `RSpec::Mocks::Double`. (Myron Marston)
b8d745e @myronmarston Add changelog entries.
myronmarston authored
284 * Change how to integrate rspec-mocks in other test frameworks. You now
285 need to include `RSpec::Mocks::ExampleMethods` in your test context.
286 (Myron Marston)
b88a050 @samphippen Prevent doubles and partial doubles being used outside of tests.
samphippen authored
287 * Prevent RSpec mocks' doubles and partial doubles from being used outside of
288 the per-test lifecycle (e.g. from a `before(:all)` hook). (Sam Phippen)
66dcbda @samphippen Add a changelog entry for #514
samphippen authored
289 * Remove the `host` argument of `RSpec::Mocks.setup`. Instead
290 `RSpec::Mocks::ExampleMethods` should be included directly in the scope where
291 RSpec's mocking capabilities are used. (Sam Phippen)
3ab7925 @myronmarston Add changelog entry for test-double self-destruction.
myronmarston authored
292 * Make test doubles raise errors if you attempt to use them after they
293 get reset, to help surface issues when you accidentally retain
294 references to test doubles and attempt to reuse them in another
295 example. (Myron Marston)
e1c9a3e @yujinakayama Disallow `and_return` without arguments
yujinakayama authored
296 * Remove support for `and_return { value }` and `and_return` without arguments. (Yuji Nakayama)
4cbc14a @myronmarston Fixup changelog.
myronmarston authored
297
55c00d4 @myronmarston Move enhancements above bug fixes in changelog.
myronmarston authored
298 Enhancements:
299
300 * Add `receive_message_chain` which provides the functionality of the old
301 `stub_chain` for the new allow/expect syntax. Use it like so: `allow(...).to
302 receive_message_chain(:foo, :bar, :bazz)`. (Sam Phippen).
303 * Change argument matchers to use `===` as their primary matching
1c6c770 @xaviershay Grammar in Changelog.
xaviershay authored
304 protocol, since their semantics mirror that of a case or rescue statement
55c00d4 @myronmarston Move enhancements above bug fixes in changelog.
myronmarston authored
305 (which uses `===` for matching). (Myron Marston)
306 * Add `RSpec::Mocks.with_temporary_scope`, which allows you to create
307 temporary rspec-mocks scopes in arbitrary places (such as a
308 `before(:all)` hook). (Myron Marston)
309 * Support keyword arguments when checking arity with verifying doubles.
310 (Xavier Shay)
311
4cbc14a @myronmarston Fixup changelog.
myronmarston authored
312 Bug Fixes:
313
314 * Fix regression in 3.0.0.beta1 that caused `double("string_name" => :value)`
315 to stop working. (Xavier Shay)
b8d745e @myronmarston Add changelog entries.
myronmarston authored
316 * Fix the way rspec-mocks and rspec-core interact so that if users
317 define a `let` with the same name as one of the methods
318 from `RSpec::Mocks::ArgumentMatchers`, the user's `let` takes
319 precedence. (Michi Huber, Myron Marston)
6bd92e5 @myronmarston Add changelog entries.
myronmarston authored
320 * Fix verified doubles so that their methods match the visibility
321 (public, protected or private) of the interface they verify
322 against. (Myron Marston)
323 * Fix verified null object doubles so that they do not wrongly
324 report that they respond to anything. They only respond to methods
325 available on the interface they verify against. (Myron Marston)
ff17d16 @myronmarston Add changelog for #477.
myronmarston authored
326 * Fix deprecation warning for use of old `:should` syntax w/o explicit
327 config so that it no longer is silenced by an extension gem such
328 as rspec-rails when it calls `config.add_stub_and_should_receive_to`.
329 (Sam Phippen)
2ef3ee8 @myronmarston Add changelog entry.
myronmarston authored
330 * Fix `expect` syntax so that it does not wrongly emit a "You're
331 overriding a previous implementation for this stub" warning when
332 you are not actually doing that. (Myron Marston)
952d954 @JonRowe fixup unstubing of sub classes when super classes are stubbed, fixes #47...
JonRowe authored
333 * Fix `any_instance.unstub` when used on sub classes for whom the super
334 class has had `any_instance.stub` invoked on. (Jon Rowe)
1e15b6e @myronmarston Add changelog for #508.
myronmarston authored
335 * Fix regression in `stub_chain`/`receive_message_chain` that caused
336 it to raise an `ArgumentError` when passing args to the stubbed
337 methods. (Sam Phippen)
1827ee4 @xaviershay Correct stub undefined parent modules all the way down when stubbing a n...
xaviershay authored
338 * Correct stub of undefined parent modules all the way down when stubbing a
339 nested constant. (Xavier Shay)
745d2a6 @JonRowe changelog for #550
JonRowe authored
340 * Raise `VerifyingDoubleNotDefinedError` when a constant is not defined for
341 a verifying class double. (Maurício Linhares)
afe60cc @myronmarston Add changelog entry for #577.
myronmarston authored
342 * Remove `Double#to_str`, which caused confusing `raise some_double`
343 behavior. (Maurício Linhares)
4cbc14a @myronmarston Fixup changelog.
myronmarston authored
344
628fcfb @myronmarston Update changelog for 3.0.0.beta1 release [ci skip]
myronmarston authored
345 ### 3.0.0.beta1 / 2013-11-07
c10548c @myronmarston Forwardport 2.99.3 release notes.
myronmarston authored
346 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.3...v3.0.0.beta1)
07f33e1 @samphippen Add a changelog entry for #296.
samphippen authored
347
29bdb9d @samphippen Raise if a should_not_receive has an and_return.
samphippen authored
348 Breaking Changes for 3.0.0:
349
350 * Raise an explicit error if `should_not_receive(...).and_return` is used. (Sam
351 Phippen)
5d6b29c @xaviershay Consistent formatting of changelog.
xaviershay authored
352 * Remove 1.8.6 workarounds. (Jon Rowe)
d4daf14 @samphippen Remove `stub!` and `unstub!`.
samphippen authored
353 * Remove `stub!` and `unstub!`. (Sam Phippen)
ad37d58 @myronmarston Update changelog with 2.99.0.beta1 release notes.
myronmarston authored
354 * Remove `mock(name, methods)` and `stub(name, methods)`, leaving
355 `double(name, methods)` for creating test doubles. (Sam Phippen, Michi Huber)
e12d279 @samphippen Remove `any_number_of_times`.
samphippen authored
356 * Remove `any_number_of_times` since `should_receive(:msg).any_number_of_times`
357 is really a stub in a mock's clothing. (Sam Phippen)
a02018d @myronmarston Add spec documenting the fact that null-ness doesn't persist between exa...
myronmarston authored
358 * Remove support for re-using the same null-object test double in multiple
359 examples. Test doubles are designed to only live for one example.
360 (Myron Marston)
f1487a0 @samphippen Make at_least(0) raise a warning.
samphippen authored
361 * Make `at_least(0)` raise an error. (Sam Phippen)
c4d2f80 @myronmarston Remove deprecated file.
myronmarston authored
362 * Remove support for `require 'spec/mocks'` which had been kept
5d6b29c @xaviershay Consistent formatting of changelog.
xaviershay authored
363 in place for backwards compatibility with RSpec 1. (Myron Marston)
364 * Blocks provided to `with` are always used as implementation. (Xavier Shay)
ad37d58 @myronmarston Update changelog with 2.99.0.beta1 release notes.
myronmarston authored
365 * The config option (added in 2.99) to yield the receiver to
366 `any_instance` implementation blocks now defaults to "on". (Sam Phippen)
29bdb9d @samphippen Raise if a should_not_receive has an and_return.
samphippen authored
367
9636dc9 @soulcutter Changelog entry
soulcutter authored
368 Enhancements:
7ad8f4e @samphippen Add a changelog entry for #367.
samphippen authored
369
73ae2fa @samphippen Improve the changelog entry for #367.
samphippen authored
370 * Allow the `have_received` matcher to use a block to set further expectations
371 on arguments. (Tim Cowlishaw)
03f51d9 @xaviershay Add verifying double features from rspec-fire.
xaviershay authored
372 * Provide `instance_double` and `class_double` to create verifying doubles,
5d6b29c @xaviershay Consistent formatting of changelog.
xaviershay authored
373 ported from `rspec-fire`. (Xavier Shay)
374 * `as_null_object` on a verifying double only responds to defined methods.
375 (Xavier Shay)
7378b39 @xaviershay Provide object_double to create verifying doubles from object instances.
xaviershay authored
376 * Provide `object_double` to create verified doubles of specific object
5d6b29c @xaviershay Consistent formatting of changelog.
xaviershay authored
377 instances. (Xavier Shay)
54f9556 @myronmarston Fix typo.
myronmarston authored
378 * Provide `verify_partial_doubles` configuration that provides `object_double`
ca4e3d3 @myronmarston Update changelog.
myronmarston authored
379 like verification behaviour on partial doubles. (Xavier Shay)
3b6142a @xaviershay Changelog entry covering all double performance enhancements.
xaviershay authored
380 * Improved performance of double creation, particularly those with many
381 attributes. (Xavier Shay)
3ad5f4a @xaviershay Configuration option for default value for transfer_nested_constants.
xaviershay authored
382 * Default value of `transfer_nested_constants` option for constant stubbing can
383 be configured. (Xavier Shay)
a4a3bac @JonRowe changelog
JonRowe authored
384 * Messages can be allowed or expected on in bulk via
5d6b29c @xaviershay Consistent formatting of changelog.
xaviershay authored
385 `receive_messages(:message => :value)`. (Jon Rowe)
f370930 @samphippen Add a changelog entry for #433
samphippen authored
386 * `allow(Klass.any_instance)` and `expect(Klass.any_instance)` now print a
5d6b29c @xaviershay Consistent formatting of changelog.
xaviershay authored
387 warning. This is usually a mistake, and users usually want
f370930 @samphippen Add a changelog entry for #433
samphippen authored
388 `allow_any_instance_of` or `expect_any_instance_of` instead. (Sam Phippen)
48a63d1 @alindeman Changelog for #422 [ci skip]
alindeman authored
389 * `instance_double` and `class_double` raise `ArgumentError` if the underlying
390 module is loaded and the arity of the method being invoked does not match the
5d6b29c @xaviershay Consistent formatting of changelog.
xaviershay authored
391 arity of the method as it is actually implemented. (Andy Lindeman)
056d2fc @JonRowe verifying ordering of spies
JonRowe authored
392 * Spies can now check their invocation ordering is correct. (Jon Rowe)
7ad8f4e @samphippen Add a changelog entry for #367.
samphippen authored
393
b34488c @myronmarston Add changelog entry for #339.
myronmarston authored
394 Deprecations:
395
396 * Using the old `:should` syntax without explicitly configuring it
ecad228 @yujinakayama Correct the entry of should syntax deprecation in changelog
yujinakayama authored
397 is deprecated. It will continue to work but will emit a deprecation
b34488c @myronmarston Add changelog entry for #339.
myronmarston authored
398 warning in RSpec 3 if you do not explicitly enable it. (Sam Phippen)
399
6aa9bcc @myronmarston Add changelog entry for #264.
myronmarston authored
400 Bug Fixes:
401
402 * Fix `and_call_original` to handle a complex edge case involving
403 singleton class ancestors. (Marc-André Lafortune, Myron Marston)
07f96d4 @myronmarston Add changelog entry for #417.
myronmarston authored
404 * When generating an error message for unexpected arguments,
405 use `#inspect` rather than `#description` if `#description`
406 returns `nil` or `''` so that you still get a useful message.
407 (Nick DeLuca)
0199c03 @myronmarston Add 2.14.4 release notes.
myronmarston authored
408
c10548c @myronmarston Forwardport 2.99.3 release notes.
myronmarston authored
409 ### 2.99.3 / 2015-01-09
410 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.2...v2.99.3)
411
412 Bug Fixes:
413
414 * Fix regression that caused an error when a test double was deserialized from YAML. (Yuji Nakayama, #777)
415
45041ca @myronmarston Forwardport 2.99.2 release notes.
myronmarston authored
416 ### 2.99.2 / 2014-07-21
417 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.1...v2.99.2)
418
419 Enhancements:
420
421 * Warn about upcoming change to `#===` matching and `DateTime#===` behaviour.
422 (Jon Rowe, #735)
423
e7af397 @myronmarston 2.99.1 release notes.
myronmarston authored
424 ### 2.99.1 / 2014-06-12
425 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0...v2.99.1)
426
427 Bug Fixes:
428
429 * Fix bug that caused errors at the end of each example
430 when a `double.as_null_object` had been frozen. (Yuji Nakayama, #698)
431
432 Deprecations:
433
434 * Deprecate freezing a test double. (Yuji Nakayama, #698)
435
e9295f2 @myronmarston Forwardport 2.99.0 release notes. [ci skip]
myronmarston authored
436 ### 2.99.0 / 2014-06-01
437 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.rc1...v2.99.0)
438
439 No changes. Just taking it out of pre-release.
440
c8ca829 @myronmarston Forwardport release notes from 2.99.0.rc1 [ci skip]
myronmarston authored
441 ### 2.99.0.rc1 / 2014-05-18
442 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.beta2...v2.99.0.rc1)
443
444 Deprecations:
445
446 * Deprecate `RSpec::Mocks::TestDouble.extend_onto`. (Myron Marston)
447 * Deprecate `RSpec::Mocks::ConstantStubber`. (Jon Rowe)
448 * Deprecate `Marshal.dump` monkey-patch without opt-in. (Xavier Shay)
449
10cdaa3 @myronmarston Add release notes from 2.99.0.beta2.
myronmarston authored
450 ### 2.99.0.beta2 / 2014-02-17
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
451 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.99.0.beta1...v2.99.0.beta2)
10cdaa3 @myronmarston Add release notes from 2.99.0.beta2.
myronmarston authored
452
453 Deprecations:
454
455 * Deprecate `RSpec::Mocks::Mock` in favor of `RSpec::Mocks::Double`.
456 (Myron Marston)
457 * Deprecate the `host` argument of `RSpec::Mocks.setup`. Instead
458 `RSpec::Mocks::ExampleMethods` should be included directly in the scope where
459 RSpec's mocking capabilities are used. (Sam Phippen)
460 * Deprecate using any of rspec-mocks' features outside the per-test
461 lifecycle (e.g. from a `before(:all)` hook). (Myron Marston)
462 * Deprecate re-using a test double in another example. (Myron Marston)
463 * Deprecate `and_return { value }` and `and_return` without arguments. (Yuji Nakayama)
464
ad37d58 @myronmarston Update changelog with 2.99.0.beta1 release notes.
myronmarston authored
465 ### 2.99.0.beta1 / 2013-11-07
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
466 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.4...v2.99.0.beta1)
ad37d58 @myronmarston Update changelog with 2.99.0.beta1 release notes.
myronmarston authored
467
468 Deprecations
469
470 * Expecting to use lambdas or other strong arity implementations for stub
471 methods with mis-matched arity is deprecated and support for them will be
472 removed in 3.0. Either provide the right amount of arguments or use a weak
473 arity implementation (methods with splats or procs). (Jon Rowe)
474 * Using the same test double instance in multiple examples is deprecated. Test
475 doubles are only meant to live for one example. The mocks and stubs have
476 always been reset between examples; however, in 2.x the `as_null_object`
477 state was not reset and some users relied on this to have a null object
478 double that is used for many examples. This behavior will be removed in 3.0.
479 (Myron Marston)
480 * Print a detailed warning when an `any_instance` implementation block is used
481 when the new `yield_receiver_to_any_instance_implementation_blocks` config
482 option is not explicitly set, as RSpec 3.0 will default to enabling this new
483 feature. (Sam Phippen)
484
485 Enhancements:
486
487 * Add a config option to yield the receiver to `any_instance` implementation
488 blocks. (Sam Phippen)
489
71f633c @myronmarston Add 2.14.6 release notes.
myronmarston authored
490 ### 2.14.6 / 2014-02-20
c8ca829 @myronmarston Forwardport release notes from 2.99.0.rc1 [ci skip]
myronmarston authored
491 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.5...v2.14.6)
71f633c @myronmarston Add 2.14.6 release notes.
myronmarston authored
492
493 Bug Fixes:
494
495 * Ensure `any_instance` method stubs and expectations are torn down regardless of
496 expectation failures. (Sam Phippen)
497
7b9930b @myronmarston Update changelog with 2.14.5 release notes.
myronmarston authored
498 ### 2.14.5 / 2014-02-01
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
499 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.4...v2.14.5)
7b9930b @myronmarston Update changelog with 2.14.5 release notes.
myronmarston authored
500
501 Bug Fixes:
502
503 * Fix regression that caused block implementations to not receive all
504 args on 1.8.7 if the block also receives a block, due to Proc#arity
505 reporting `1` no matter how many args the block receives if it
506 receives a block, too. (Myron Marston)
507
0199c03 @myronmarston Add 2.14.4 release notes.
myronmarston authored
508 ### 2.14.4 / 2013-10-15
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
509 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.3...v2.14.4)
0199c03 @myronmarston Add 2.14.4 release notes.
myronmarston authored
510
511 Bug Fixes:
512
513 * Fix issue where unstubing methods on "any instances" would not
514 remove stubs on existing instances (Jon Rowe)
cd7261f @JonRowe changelog for #428
JonRowe authored
515 * Fix issue with receive(:message) do ... end precedence preventing
516 the usage of modifications (`and_return` etc) (Jon Rowe)
6aa9bcc @myronmarston Add changelog entry for #264.
myronmarston authored
517
0d07799 @myronmarston Update changelog for 2.14.3 release.
myronmarston authored
518 ### 2.14.3 / 2013-08-08
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
519 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.2...v2.14.3)
0d07799 @myronmarston Update changelog for 2.14.3 release.
myronmarston authored
520
9636dc9 @soulcutter Changelog entry
soulcutter authored
521 Bug Fixes:
a4f908f @samphippen Add a changelog entry for #351.
samphippen authored
522
9636dc9 @soulcutter Changelog entry
soulcutter authored
523 * Fix stubbing some instance methods for classes whose hierarchy includes
524 a prepended Module (Bradley Schaefer)
a4f908f @samphippen Add a changelog entry for #351.
samphippen authored
525
d627d3d @myronmarston Update changelog to reflect 2.14.2 release.
myronmarston authored
526 ### 2.14.2 / 2013-07-30
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
527 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.1...v2.14.2)
d627d3d @myronmarston Update changelog to reflect 2.14.2 release.
myronmarston authored
528
529 Bug Fixes:
530
531 * Fix `as_null_object` doubles so that they return `nil` from `to_ary`
532 (Jon Rowe).
533 * Fix regression in 2.14 that made `stub!` (with an implicit receiver)
534 return a test double rather than stub a method (Myron Marston).
535
c7eb20e @myronmarston Update changelog with 2.14.1 release notes.
myronmarston authored
536 ### 2.14.1 / 2013-07-07
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
537 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.0...v2.14.1)
c7eb20e @myronmarston Update changelog with 2.14.1 release notes.
myronmarston authored
538
539 Bug Fixes:
540
541 * Restore `double.as_null_object` behavior from 2.13 and earlier: a
542 double's nullness persisted between examples in earlier examples.
543 While this is not an intended use case (test doubles are meant to live
544 for only one example), we don't want to break behavior users rely
545 on in a minor relase. This will be deprecated in 2.99 and removed
546 in 3.0. (Myron Marston)
547
7945ba5 @myronmarston Update changelog to reflect 2.14.0 release.
myronmarston authored
548 ### 2.14.0 / 2013-07-06
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
549 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.14.0.rc1...v2.14.0)
7945ba5 @myronmarston Update changelog to reflect 2.14.0 release.
myronmarston authored
550
07f33e1 @samphippen Add a changelog entry for #296.
samphippen authored
551 Enhancements:
552
553 * Document test spies in the readme. (Adarsh Pandit)
14da850 @samphippen Add an array_including argument matcher
samphippen authored
554 * Add an `array_including` matcher. (Sam Phippen)
d5b1ec3 @myronmarston Reword a couple of confusing changelog entries.
myronmarston authored
555 * Add a syntax-agnostic API for mocking or stubbing a method. This is
556 intended for use by libraries such as rspec-rails that need to mock
557 or stub a method, and work regardless of the syntax the user has
558 configured (Paul Annesley, Myron Marston and Sam Phippen).
07f33e1 @samphippen Add a changelog entry for #296.
samphippen authored
559
3812438 @samphippen Add a changelog entry for #306.
samphippen authored
560 Bug Fixes:
561
d5b1ec3 @myronmarston Reword a couple of confusing changelog entries.
myronmarston authored
562 * Fix `double` so that it sets up passed stubs correctly regardless of
563 the configured syntax (Paul Annesley).
f41cfcb @myronmarston Clarify relationship between different method stub actions.
myronmarston authored
564 * Allow a block implementation to be used in combination with
565 `and_yield`, `and_raise`, `and_return` or `and_throw`. This got fixed
566 in 2.13.1 but failed to get merged into master for the 2.14.0.rc1
567 release (Myron Marston).
bcee056 @alindeman Changelog entry
alindeman authored
568 * `Marshal.dump` does not unnecessarily duplicate objects when rspec-mocks has
569 not been fully initialized. This could cause errors when using `spork` or
570 similar preloading gems (Andy Lindeman).
3812438 @samphippen Add a changelog entry for #306.
samphippen authored
571
131099c @myronmarston Prep changelog for 2.14.0.rc1 release. [ci skip]
myronmarston authored
572 ### 2.14.0.rc1 / 2013-05-27
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
573 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.14.0.rc1)
73d7236 @myronmarston Update changelog for #233.
myronmarston authored
574
39cbc13 @myronmarston Changelog entry for #250.
myronmarston authored
575 Enhancements:
576
577 * Refactor internals so that the mock proxy methods and state are held
578 outside of the mocked object rather than inside it. This paves the way
579 for future syntax enhancements and removes the need for some hacky
580 work arounds for `any_instance` dup'ing and `YAML` serialization,
131099c @myronmarston Prep changelog for 2.14.0.rc1 release. [ci skip]
myronmarston authored
581 among other things. Note that the code now relies upon `__id__`
39cbc13 @myronmarston Changelog entry for #250.
myronmarston authored
582 returning a unique, consistent value for any object you want to
583 mock or stub (Myron Marston).
dce3fd9 @myronmarston Mention new test spies feature in Changelog.
myronmarston authored
584 * Add support for test spies. This allows you to verify a message
585 was received afterwards using the `have_received` matcher.
586 Note that you must first stub the method or use a null double.
587 (Joe Ferris and Joël Quenneville)
80840b1 @samphippen Add a changelog entry for the new received expectation message
samphippen authored
588 * Make `at_least` and `at_most` style receive expectations print that they were
589 expecting at least or at most some number of calls, rather than just the
590 number of calls given in the expectation (Sam Phippen)
45b4443 @samphippen Add a changelog entry for #269
samphippen authored
591 * Make `with` style receive expectations print the args they were expecting, and
592 the args that they got (Sam Phippen)
8f82f35 @samphippen Add a changelog entry for #282.
samphippen authored
593 * Fix some warnings seen under ruby 2.0.0p0 (Sam Phippen).
5639d34 @samphippen Add a changelog entry for #266.
samphippen authored
594 * Add a new `:expect` syntax for message expectations
595 (Myron Marston and Sam Phippen).
39cbc13 @myronmarston Changelog entry for #250.
myronmarston authored
596
6f88317 @myronmarston This is a bug fix, not a deprecation.
myronmarston authored
597 Bug fixes
598
599 * Fix `any_instance` so that a frozen object can be `dup`'d when methods
600 have been stubbed on that type using `any_instance` (Jon Rowe).
c5a83d4 @myronmarston Changelog for #245.
myronmarston authored
601 * Fix `and_call_original` so that it properly raises an `ArgumentError`
602 when the wrong number of args are passed (Jon Rowe).
06f6bcb @myronmarston Clarify changelog entry.
myronmarston authored
603 * Fix `double` on 1.9.2 so you can wrap them in an Array
604 using `Array(my_double)` (Jon Rowe).
d3b4a05 @samphippen Make `stub_const` and `hide_const` work for modules that define send
samphippen authored
605 * Fix `stub_const` and `hide_const` to handle constants that redefine `send`
606 (Sam Phippen).
0502ac4 @JonRowe changelog entry
JonRowe authored
607 * Fix `Marshal.dump` extension so that it correctly handles nil.
608 (Luke Imhoff, Jon Rowe)
a36c8f8 @JonRowe update changelog
JonRowe authored
609 * Fix isolation of `allow_message_expectations_on_nil` (Jon Rowe)
5c1f647 @benlangfeld Use inspect to format actual arguments on expectations in failure messag...
benlangfeld authored
610 * Use inspect to format actual arguments on expectations in failure messages (#280, Ben Langfeld)
80cbe18 @JonRowe update changelog
JonRowe authored
611 * Protect against improperly initialised test doubles (#293) (Joseph Shraibman and Jon Rowe)
6f88317 @myronmarston This is a bug fix, not a deprecation.
myronmarston authored
612
73d7236 @myronmarston Update changelog for #233.
myronmarston authored
613 Deprecations
614
615 * Deprecate `stub` and `mock` as aliases for `double`. `double` is the
616 best term for creating a test double, and it reduces confusion to
617 have only one term (Michi Huber).
ee0ecbf @myronmarston Changelog entry for #242.
myronmarston authored
618 * Deprecate `stub!` and `unstub!` in favor of `stub` and `unstub`
619 (Jon Rowe).
2efca50 @samphippen Add a changelog entry for #231 and #237
samphippen authored
620 * Deprecate `at_least(0).times` and `any_number_of_times` (Michi Huber).
73d7236 @myronmarston Update changelog for #233.
myronmarston authored
621
372346a @myronmarston Add missing 2.13.1 release notes.
myronmarston authored
622 ### 2.13.1 / 2013-04-06
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
623 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.13.1)
372346a @myronmarston Add missing 2.13.1 release notes.
myronmarston authored
624
625 Bug fixes
626
627 * Allow a block implementation to be used in combination with
628 `and_yield`, `and_raise`, `and_return` or `and_throw` (Myron Marston).
629
88878d1 @myronmarston Update changelog for release
myronmarston authored
630 ### 2.13.0 / 2013-02-23
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
631 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.2...v2.13.0)
6123c97 @myronmarston Simplify implementation of consecutive return values.
myronmarston authored
632
633 Bug fixes
634
635 * Fix bug that caused weird behavior when a method that had
636 previously been stubbed with multiple return values (e.g.
637 `obj.stub(:foo).and_return(1, 2)`) was later mocked with a
638 single return value (e.g. `obj.should_receive(:foo).once.and_return(1)`).
639 (Myron Marston)
977dc00 @myronmarston Use the matching parent stub rather than just picking the first one.
myronmarston authored
640 * Fix bug related to a mock expectation for a method that already had
641 multiple stubs with different `with` constraints. Previously, the
642 first stub was used, even though it may not have matched the passed
643 args. The fix defers this decision until the message is received so
644 that the proper stub response can be chosen based on the passed
645 arguments (Myron Marston).
ae02d47 @myronmarston Update changelog [ci skip].
myronmarston authored
646 * Do not call `nil?` extra times on a mocked object, in case `nil?`
647 itself is expected a set number of times (Myron Marston).
5f842f3 @myronmarston Add changelog entry for #226.
myronmarston authored
648 * Fix `missing_default_stub_error` message so array args are handled
649 properly (Myron Marston).
8e4015f @myronmarston Add changelog entry for #223.
myronmarston authored
650 * Explicitly disallow `any_instance.unstub!` (Ryan Jones).
aa3b226 @myronmarston Fix `any_instance` stubbing so that it works with `Delegator` subclasses...
myronmarston authored
651 * Fix `any_instance` stubbing so that it works with `Delegator`
652 subclasses (Myron Marston).
5d0e6de @myronmarston Better fix for SimpleDelegator subclasses (#219).
myronmarston authored
653 * Fix `and_call_original` so that it works with `Delegator` subclasses
654 (Myron Marston).
8dc2b1d @myronmarston Fix any_instance.should_not_receive when used w/ any_instance.should_rec...
myronmarston authored
655 * Fix `any_instance.should_not_receive` when `any_instance.should_receive`
656 is used on the same class in the same example. Previously it would
657 wrongly report a failure even when the message was not received
658 (Myron Marston).
6123c97 @myronmarston Simplify implementation of consecutive return values.
myronmarston authored
659
bde69f0 @myronmarston 2.12.2 release.
myronmarston authored
660 ### 2.12.2 / 2013-01-27
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
661 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.1...v.2.12.2)
14ae958 @myronmarston Fix `and_call_original` so that it looks for the method in all ancestors
myronmarston authored
662
663 Bug fixes
664
665 * Fix `and_call_original` to work properly for methods defined
666 on a module extended onto an object instance (Myron Marston).
1e3f431 @myronmarston Handle `stub_const("::SomeUndefinedConst")`.
myronmarston authored
667 * Fix `stub_const` with an undefined constnat name to work properly
668 with constant strings that are prefixed with `::` -- and edge case
669 I missed in the bug fix in the 2.12.1 release (Myron Marston).
bde69f0 @myronmarston 2.12.2 release.
myronmarston authored
670 * Ensure method visibility on a partial mock is restored after reseting
671 method stubs, even on a singleton module (created via `extend self`)
672 when the method visibility differs between the instance and singleton
673 versions (Andy Lindeman).
14ae958 @myronmarston Fix `and_call_original` so that it looks for the method in all ancestors
myronmarston authored
674
d7aac2c @myronmarston Release 2.12.1.
myronmarston authored
675 ### 2.12.1 / 2012-12-21
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
676 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.12.0...v2.12.1)
0f77e46 @myronmarston Add support for #and_call_original to an #any_instance partial mock.
myronmarston authored
677
5e41915 @myronmarston Update Changelog.
myronmarston authored
678 Bug fixes
0f77e46 @myronmarston Add support for #and_call_original to an #any_instance partial mock.
myronmarston authored
679
5e41915 @myronmarston Update Changelog.
myronmarston authored
680 * Fix `any_instance` to support `and_call_original`.
0f77e46 @myronmarston Add support for #and_call_original to an #any_instance partial mock.
myronmarston authored
681 (Myron Marston)
5e41915 @myronmarston Update Changelog.
myronmarston authored
682 * Properly restore stubbed aliased methods on rubies
683 that report the incorrect owner (Myron Marston and Andy Lindeman).
1e3f431 @myronmarston Handle `stub_const("::SomeUndefinedConst")`.
myronmarston authored
684 * Fix `hide_const` and `stub_const` with a defined constnat name to
685 work properly with constant strings that are prefixed with `::` (Myron Marston).
0f77e46 @myronmarston Add support for #and_call_original to an #any_instance partial mock.
myronmarston authored
686
b194a64 @dchelimsky prep for 2.12 [ci-skip]
dchelimsky authored
687 ### 2.12.0 / 2012-11-12
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
688 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.3...v2.12.0)
39ae1f3 @myronmarston Fix transfer_nested_constants option of stub_const.
myronmarston authored
689
1bd602f @basvodde and_raise more closely matches Kernel#raise
basvodde authored
690 Enhancements
691
b194a64 @dchelimsky prep for 2.12 [ci-skip]
dchelimsky authored
692 * `and_raise` can accept an exception class and message, more closely
693 matching `Kernel#raise` (e.g., `foo.stub(:bar).and_raise(RuntimeError, "message")`)
1bd602f @basvodde and_raise more closely matches Kernel#raise
basvodde authored
694 (Bas Vodde)
2ab2776 @myronmarston Add `and_call_original` which delegates to the original method.
myronmarston authored
695 * Add `and_call_original`, which will delegate the message to the
696 original method (Myron Marston).
1bd602f @basvodde and_raise more closely matches Kernel#raise
basvodde authored
697
74c5f02 @myronmarston Updates to reflect that 2.11.3 has been released.
myronmarston authored
698 Deprecations:
699
700 * Add deprecation warning when using `and_return` with `should_not_receive`
701 (Neha Kumari)
702
703 ### 2.11.3 / 2012-09-19
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
704 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.2...v2.11.3)
74c5f02 @myronmarston Updates to reflect that 2.11.3 has been released.
myronmarston authored
705
39ae1f3 @myronmarston Fix transfer_nested_constants option of stub_const.
myronmarston authored
706 Bug fixes
707
708 * Fix `:transfer_nested_constants` option of `stub_const` so that it
709 doesn't blow up when there are inherited constants. (Myron Marston)
645b158 @alindeman any_instance is supported when a class overrides Object#method
alindeman authored
710 * `any_instance` stubs can be used on classes that override `Object#method`.
711 (Andy Lindeman)
f890472 @alindeman Changelog for #167 and #182
alindeman authored
712 * Methods stubbed with `any_instance` are unstubbed after the test finishes.
713 (Andy Lindeman)
b03c2fb @myronmarston Fix confusing error message.
myronmarston authored
714 * Fix confusing error message when calling a mocked class method an
715 extra time with the wrong arguments (Myron Marston).
39ae1f3 @myronmarston Fix transfer_nested_constants option of stub_const.
myronmarston authored
716
e7bd234 @myronmarston 2.11.2 release.
myronmarston authored
717 ### 2.11.2 / 2012-08-11
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
718 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.1...v2.11.2)
b828604 @dchelimsky Don't modify dup on classes that don't support dup
dchelimsky authored
719
720 Bug fixes
721
722 * Don't modify `dup` on classes that don't support `dup` (David Chelimsky)
f1a2682 @myronmarston Update changelog.
myronmarston authored
723 * Fix `any_instance` so that it works properly with methods defined on
724 a superclass. (Daniel Eguzkiza)
deec990 @myronmarston Fix use of const_defined? and const_get so it ignores top-level constant...
myronmarston authored
725 * Fix `stub_const` so that it works properly for nested constants that
726 share a name with a top-level constant (e.g. "MyGem::Hash"). (Myron
727 Marston)
b828604 @dchelimsky Don't modify dup on classes that don't support dup
dchelimsky authored
728
24090f8 @myronmarston 2.11.1 release.
myronmarston authored
729 ### 2.11.1 / 2012-07-09
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
730 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.0...v2.11.1)
26f6476 @myronmarston Fix edge case bug exposed w/ `should_receive` on a null object w/ a prev...
myronmarston authored
731
732 Bug fixes
733
734 * Fix `should_receive` so that when it is called on an `as_null_object`
735 double with no implementation, and there is a previous explicit stub
736 for the same method, the explicit stub remains (rather than being
737 overriden with the null object implementation--`return self`). (Myron Marston)
738
e6bba62 @dchelimsky bump to 2.11.0
dchelimsky authored
739 ### 2.11.0 / 2012-07-07
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
740 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.10.1...v2.11.0)
5d3e1dc @dchelimsky Expose ArgumentListMatcher as a formal API
dchelimsky authored
741
742 Enhancements
743
b828604 @dchelimsky Don't modify dup on classes that don't support dup
dchelimsky authored
744 * Expose ArgumentListMatcher as a formal API
5d3e1dc @dchelimsky Expose ArgumentListMatcher as a formal API
dchelimsky authored
745 * supports use by 3rd party mock frameworks like Surrogate
f04d527 @myronmarston Mention new stub_const feature in changelog.
myronmarston authored
746 * Add `stub_const` API to stub constants for the duration of an
747 example (Myron Marston).
5d3e1dc @dchelimsky Expose ArgumentListMatcher as a formal API
dchelimsky authored
748
a11fcdc @myronmarston Update changelog.
myronmarston authored
749 Bug fixes
750
751 * Fix regression of edge case behavior. `double.should_receive(:foo) { a }`
752 was causing a NoMethodError when `double.stub(:foo).and_return(a, b)`
753 had been setup before (Myron Marston).
c64c605 @justinko changelog [ci skip]
justinko authored
754 * Infinite loop generated by using `any_instance` and `dup`. (Sidu Ponnappa @kaiwren)
dbe44e6 @dchelimsky `should_receive(x).at_least(:once).and_return(y)` always returns y even ...
dchelimsky authored
755 * `double.should_receive(:foo).at_least(:once).and_return(a)` always returns a
756 even if `:foo` is already stubbed.
f8cae14 @myronmarston Prevent infinite loop when interpolating a null double as an integer int...
myronmarston authored
757 * Prevent infinite loop when interpolating a null double into a string
758 as an integer (`"%i" % double.as_null_object`). (Myron Marston)
a5f296e @myronmarston Fix `should_receive` to preserve null object behavior.
myronmarston authored
759 * Fix `should_receive` so that null object behavior (e.g. returning
760 self) is preserved if no implementation is given (Myron Marston).
aa179ed @myronmarston Update changelog.
myronmarston authored
761 * Fix `and_raise` so that it raises `RuntimeError` rather than
762 `Exception` by default, just like ruby does. (Andrew Marshall)
a11fcdc @myronmarston Update changelog.
myronmarston authored
763
112b430 @dchelimsky bump to 2.10.1
dchelimsky authored
764 ### 2.10.1 / 2012-05-05
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
765 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.10.0...v2.10.1)
112b430 @dchelimsky bump to 2.10.1
dchelimsky authored
766
767 Bug fixes
768
769 * fix regression of edge case behavior
770 (https://github.com/rspec/rspec-mocks/issues/132)
771 * fixed failure of `object.should_receive(:message).at_least(0).times.and_return value`
772 * fixed failure of `object.should_not_receive(:message).and_return value`
773
4862911 @dchelimsky update changelog for 2.10 release
dchelimsky authored
774 ### 2.10.0 / 2012-05-03
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
775 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.9.0...v2.10.0)
fb9c76c @dchelimsky fail fast when an exactly or at_most expectation is exceeded
dchelimsky authored
776
777 Bug fixes
778
c64c605 @justinko changelog [ci skip]
justinko authored
779 * fail fast when an `exactly` or `at_most` expectation is exceeded
fb9c76c @dchelimsky fail fast when an exactly or at_most expectation is exceeded
dchelimsky authored
780
e62d381 @dchelimsky bump to 2.9.0
dchelimsky authored
781 ### 2.9.0 / 2012-03-17
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
782 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0...v2.9.0)
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
783
35f67e6 @dchelimsky Changelog for #101, #106
dchelimsky authored
784 Enhancements
785
786 * Support order constraints across objects (preethiramdev)
787
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
788 Bug fixes
789
790 * Allow a `as_null_object` to be passed to `with`
6743cd7 @dchelimsky Changelog for #105
dchelimsky authored
791 * Pass proc to block passed to stub (Aubrey Rhodes)
59c41e8 @dchelimsky Changelog for #109
dchelimsky authored
792 * Initialize child message expectation args to match any args (#109 -
793 preethiramdev)
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
794
ea8cc1f @dchelimsky bump to 2.8.0
dchelimsky authored
795 ### 2.8.0 / 2012-01-04
796
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
797 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc2...v2.8.0)
ea8cc1f @dchelimsky bump to 2.8.0
dchelimsky authored
798
799 No changes for this release. Just releasing with the other rspec gems.
800
12506e1 @dchelimsky prep for 2.8.0.rc2
dchelimsky authored
801 ### 2.8.0.rc2 / 2011-12-19
802
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
803 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
12506e1 @dchelimsky prep for 2.8.0.rc2
dchelimsky authored
804
805 No changes for this release. Just releasing with the other rspec gems.
806
349f127 @dchelimsky changelog
dchelimsky authored
807 ### 2.8.0.rc1 / 2011-11-06
808
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
809 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.7.0...v2.8.0.rc1)
5244b17 @dchelimsky changelog tweaks
dchelimsky authored
810
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
811 Enhancements
812
813 * Eliminate Ruby warnings (Matijs van Zuijlen)
5244b17 @dchelimsky changelog tweaks
dchelimsky authored
814
6a7c51a @dchelimsky update changelog for 2.7.0 release
dchelimsky authored
815 ### 2.7.0 / 2011-10-16
b3832f5 @dchelimsky Changlog for #85 and #86.
dchelimsky authored
816
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
817 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.6.0...v2.7.0)
8e8e62f @justinko Refactor any_instance to be instance agnostic - Closes #58
justinko authored
818
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
819 Enhancements
820
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
821 * Use `__send__` rather than `send` (alextk)
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
822 * Add support for `any_instance.stub_chain` (Sidu Ponnappa)
823 * Add support for `any_instance` argument matching based on `with` (Sidu
824 Ponnappa and Andy Lindeman)
825
826 Changes
827
828 * Check for `failure_message_for_should` or `failure_message` instead of
829 `description` to detect a matcher (Tibor Claassen)
b970638 @justinko changelog
justinko authored
830
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
831 Bug fixes
0e482f4 @dchelimsky Changelog
dchelimsky authored
832
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
833 * pass a hash to `any_instance.stub`. (Justin Ko)
834 * allow `to_ary` to be called without raising `NoMethodError` (Mikhail
835 Dieterle)
836 * `any_instance` properly restores private methods (Sidu Ponnappa)
8e8e62f @justinko Refactor any_instance to be instance agnostic - Closes #58
justinko authored
837
3f1d77f @dchelimsky prep for 2.6.0
dchelimsky authored
838 ### 2.6.0 / 2011-05-12
4a02ebc @dchelimsky prep for 2.6.0.rc5
dchelimsky authored
839
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
840 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.5.0...v2.6.0)
ca2d837 @dchelimsky fix bug in which multiple chains with shared messages ending in hashes
dchelimsky authored
841
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
842 Enhancements
2d7caa5 @dchelimsky Changlog and some minor tweaks
dchelimsky authored
843
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
844 * Add support for `any_instance.stub` and `any_instance.should_receive` (Sidu
845 Ponnappa and Andy Lindeman)
846
847 Bug fixes
848
849 * fix bug in which multiple chains with shared messages ending in hashes failed
850 to return the correct value
ca2d837 @dchelimsky fix bug in which multiple chains with shared messages ending in hashes
dchelimsky authored
851
a6c98bd @dchelimsky prep for 2.5 release
dchelimsky authored
852 ### 2.5.0 / 2011-02-05
4e7ea7d @dchelimsky update history
dchelimsky authored
853
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
854 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.4.0...v2.5.0)
4e7ea7d @dchelimsky update history
dchelimsky authored
855
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
856 Bug fixes
857
858 * message expectation counts now work in combination with a stub (Damian
859 Nurzynski)
860 * fix failure message when message received with incorrect args (Josep M.
861 Bach)
3c467e9 @dchelimsky add history
dchelimsky authored
862
866f34a @dchelimsky prep for 2.4.0 release
dchelimsky authored
863 ### 2.4.0 / 2011-01-02
0358d7f @dchelimsky fix changelog link
dchelimsky authored
864
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
865 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.3.0...v2.4.0)
866f34a @dchelimsky prep for 2.4.0 release
dchelimsky authored
866
867 No functional changes in this release, which was made to align with the
868 rspec-core-2.4.0 release.
0358d7f @dchelimsky fix changelog link
dchelimsky authored
869
dd336af @dchelimsky prep for 2.3.0 release
dchelimsky authored
870 ### 2.3.0 / 2010-12-12
e16666a @dchelimsky history
dchelimsky authored
871
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
872 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.2.0...v2.3.0)
e16666a @dchelimsky history
dchelimsky authored
873
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
874 Bug fixes
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
875
876 * Fix our Marshal extension so that it does not interfere with objects that
877 have their own `@mock_proxy` instance variable. (Myron Marston)
e16666a @dchelimsky history
dchelimsky authored
878
1024474 @dchelimsky prep for 2.2 release
dchelimsky authored
879 ### 2.2.0 / 2010-11-28
be136a4 @dchelimsky Added "rspec/mocks/standalone"
dchelimsky authored
880
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
881 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.1.0...v2.2.0)
be136a4 @dchelimsky Added "rspec/mocks/standalone"
dchelimsky authored
882
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
883 Enhancements
884
885 * Added "rspec/mocks/standalone" for exploring the rspec-mocks in irb.
be136a4 @dchelimsky Added "rspec/mocks/standalone"
dchelimsky authored
886
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
887 Bug fix
888
889 * Eliminate warning on splat args without parens (Gioele Barabucci)
890 * Fix bug where `obj.should_receive(:foo).with(stub.as_null_object)` would pass
891 with a false positive.
8d35da8 @dchelimsky History
dchelimsky authored
892
506d9f6 @dchelimsky bump to 2.1.0
dchelimsky authored
893 ### 2.1.0 / 2010-11-07
31a9e6b @dchelimsky history
dchelimsky authored
894
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
895 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.1...v2.1.0)
31a9e6b @dchelimsky history
dchelimsky authored
896
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
897 Bug fixes
898
899 * Fix serialization of stubbed object (Josep M Bach)
31a9e6b @dchelimsky history
dchelimsky authored
900
0238b34 @dchelimsky prep for 2.0.0
dchelimsky authored
901 ### 2.0.0 / 2010-10-10
902
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
903 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0)
0238b34 @dchelimsky prep for 2.0.0
dchelimsky authored
904
82891fe @dchelimsky update history
dchelimsky authored
905 ### 2.0.0.rc / 2010-10-05
c94a566 @dchelimsky update history
dchelimsky authored
906
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
907 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0.rc)
c94a566 @dchelimsky update history
dchelimsky authored
908
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
909 Enhancements
c94a566 @dchelimsky update history
dchelimsky authored
910
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
911 * support passing a block to an expectation block (Nicolas Braem)
912 * `obj.should_receive(:msg) {|&block| ... }`
913
914 Bug fixes
915
916 * Fix YAML serialization of stub (Myron Marston)
917 * Fix rdoc rake task (Hans de Graaff)
c94a566 @dchelimsky update history
dchelimsky authored
918
f36ed16 @dchelimsky adjust history for beta.22 release
dchelimsky authored
919 ### 2.0.0.beta.22 / 2010-09-12
3c467e9 @dchelimsky add history
dchelimsky authored
920
47d6473 @myronmarston "full changelog" => "Full Changelog"
myronmarston authored
921 [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.20...v2.0.0.beta.22)
3c467e9 @dchelimsky add history
dchelimsky authored
922
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
923 Bug fixes
924
925 * fixed regression that broke `obj.stub_chain(:a, :b => :c)`
926 * fixed regression that broke `obj.stub_chain(:a, :b) { :c }`
927 * `respond_to?` always returns true when using `as_null_object`
Something went wrong with that request. Please try again.