Skip to content
Newer
Older
100644 237 lines (151 sloc) 7.21 KB
39ae1f3 @myronmarston Fix transfer_nested_constants option of stub_const.
myronmarston authored
1 ### dev
2 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.11.2...master)
3
1bd602f @basvodde and_raise more closely matches Kernel#raise
basvodde authored
4 Enhancements
5
6 * and_raise can accept an exception class and message, more closely
7 matching Kernel#raise (e.g., foo.stub(:bar).and_raise(RuntimeError, "message"))
8 (Bas Vodde)
9
39ae1f3 @myronmarston Fix transfer_nested_constants option of stub_const.
myronmarston authored
10 Bug fixes
11
12 * Fix `:transfer_nested_constants` option of `stub_const` so that it
13 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
14 * `any_instance` stubs can be used on classes that override `Object#method`.
15 (Andy Lindeman)
f890472 @alindeman Changelog for #167 and #182
alindeman authored
16 * Methods stubbed with `any_instance` are unstubbed after the test finishes.
17 (Andy Lindeman)
6903d2e @myronmarston Fix confusing error message.
myronmarston authored
18 * Fix confusing error message when calling a mocked class method an
19 extra time with the wrong arguments (Myron Marston).
39ae1f3 @myronmarston Fix transfer_nested_constants option of stub_const.
myronmarston authored
20
90f3ebb @dchelimsky Changelog for #151
dchelimsky authored
21 Deprecations:
22
23 * Add deprecation warning when using `and_return` with `should_not_receive`
24 (Neha Kumari)
25
e7bd234 @myronmarston 2.11.2 release.
myronmarston authored
26 ### 2.11.2 / 2012-08-11
27 [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
28
29 Bug fixes
30
31 * Don't modify `dup` on classes that don't support `dup` (David Chelimsky)
f1a2682 @myronmarston Update changelog.
myronmarston authored
32 * Fix `any_instance` so that it works properly with methods defined on
33 a superclass. (Daniel Eguzkiza)
deec990 @myronmarston Fix use of const_defined? and const_get so it ignores top-level const…
myronmarston authored
34 * Fix `stub_const` so that it works properly for nested constants that
35 share a name with a top-level constant (e.g. "MyGem::Hash"). (Myron
36 Marston)
b828604 @dchelimsky Don't modify dup on classes that don't support dup
dchelimsky authored
37
24090f8 @myronmarston 2.11.1 release.
myronmarston authored
38 ### 2.11.1 / 2012-07-09
39 [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 p…
myronmarston authored
40
41 Bug fixes
42
43 * Fix `should_receive` so that when it is called on an `as_null_object`
44 double with no implementation, and there is a previous explicit stub
45 for the same method, the explicit stub remains (rather than being
46 overriden with the null object implementation--`return self`). (Myron Marston)
47
e6bba62 @dchelimsky bump to 2.11.0
dchelimsky authored
48 ### 2.11.0 / 2012-07-07
49 [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
50
51 Enhancements
52
b828604 @dchelimsky Don't modify dup on classes that don't support dup
dchelimsky authored
53 * Expose ArgumentListMatcher as a formal API
5d3e1dc @dchelimsky Expose ArgumentListMatcher as a formal API
dchelimsky authored
54 * supports use by 3rd party mock frameworks like Surrogate
f04d527 @myronmarston Mention new stub_const feature in changelog.
myronmarston authored
55 * Add `stub_const` API to stub constants for the duration of an
56 example (Myron Marston).
5d3e1dc @dchelimsky Expose ArgumentListMatcher as a formal API
dchelimsky authored
57
a11fcdc @myronmarston Update changelog.
myronmarston authored
58 Bug fixes
59
60 * Fix regression of edge case behavior. `double.should_receive(:foo) { a }`
61 was causing a NoMethodError when `double.stub(:foo).and_return(a, b)`
62 had been setup before (Myron Marston).
c64c605 @justinko changelog [ci skip]
justinko authored
63 * 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 ev…
dchelimsky authored
64 * `double.should_receive(:foo).at_least(:once).and_return(a)` always returns a
65 even if `:foo` is already stubbed.
f8cae14 @myronmarston Prevent infinite loop when interpolating a null double as an integer …
myronmarston authored
66 * Prevent infinite loop when interpolating a null double into a string
67 as an integer (`"%i" % double.as_null_object`). (Myron Marston)
a5f296e @myronmarston Fix `should_receive` to preserve null object behavior.
myronmarston authored
68 * Fix `should_receive` so that null object behavior (e.g. returning
69 self) is preserved if no implementation is given (Myron Marston).
aa179ed @myronmarston Update changelog.
myronmarston authored
70 * Fix `and_raise` so that it raises `RuntimeError` rather than
71 `Exception` by default, just like ruby does. (Andrew Marshall)
a11fcdc @myronmarston Update changelog.
myronmarston authored
72
112b430 @dchelimsky bump to 2.10.1
dchelimsky authored
73 ### 2.10.1 / 2012-05-05
74 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.10.0...v2.10.1)
75
76 Bug fixes
77
78 * fix regression of edge case behavior
79 (https://github.com/rspec/rspec-mocks/issues/132)
80 * fixed failure of `object.should_receive(:message).at_least(0).times.and_return value`
81 * fixed failure of `object.should_not_receive(:message).and_return value`
82
4862911 @dchelimsky update changelog for 2.10 release
dchelimsky authored
83 ### 2.10.0 / 2012-05-03
84 [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
85
86 Bug fixes
87
c64c605 @justinko changelog [ci skip]
justinko authored
88 * 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
89
e62d381 @dchelimsky bump to 2.9.0
dchelimsky authored
90 ### 2.9.0 / 2012-03-17
91 [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
92
35f67e6 @dchelimsky Changelog for #101, #106
dchelimsky authored
93 Enhancements
94
95 * Support order constraints across objects (preethiramdev)
96
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
97 Bug fixes
98
99 * Allow a `as_null_object` to be passed to `with`
6743cd7 @dchelimsky Changelog for #105
dchelimsky authored
100 * Pass proc to block passed to stub (Aubrey Rhodes)
59c41e8 @dchelimsky Changelog for #109
dchelimsky authored
101 * Initialize child message expectation args to match any args (#109 -
102 preethiramdev)
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
103
ea8cc1f @dchelimsky bump to 2.8.0
dchelimsky authored
104 ### 2.8.0 / 2012-01-04
105
106 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc2...v2.8.0)
107
108 No changes for this release. Just releasing with the other rspec gems.
109
12506e1 @dchelimsky prep for 2.8.0.rc2
dchelimsky authored
110 ### 2.8.0.rc2 / 2011-12-19
111
112 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
113
114 No changes for this release. Just releasing with the other rspec gems.
115
349f127 @dchelimsky changelog
dchelimsky authored
116 ### 2.8.0.rc1 / 2011-11-06
117
118 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.7.0...v2.8.0.rc1)
5244b17 @dchelimsky changelog tweaks
dchelimsky authored
119
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
120 Enhancements
121
122 * Eliminate Ruby warnings (Matijs van Zuijlen)
5244b17 @dchelimsky changelog tweaks
dchelimsky authored
123
6a7c51a @dchelimsky update changelog for 2.7.0 release
dchelimsky authored
124 ### 2.7.0 / 2011-10-16
b3832f5 @dchelimsky Changlog for #85 and #86.
dchelimsky authored
125
6a7c51a @dchelimsky update changelog for 2.7.0 release
dchelimsky authored
126 [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
127
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
128 Enhancements
129
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
130 * Use `__send__` rather than `send` (alextk)
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
131 * Add support for `any_instance.stub_chain` (Sidu Ponnappa)
132 * Add support for `any_instance` argument matching based on `with` (Sidu
133 Ponnappa and Andy Lindeman)
134
135 Changes
136
137 * Check for `failure_message_for_should` or `failure_message` instead of
138 `description` to detect a matcher (Tibor Claassen)
b970638 @justinko changelog
justinko authored
139
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
140 Bug fixes
0e482f4 @dchelimsky Changelog
dchelimsky authored
141
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
142 * pass a hash to `any_instance.stub`. (Justin Ko)
143 * allow `to_ary` to be called without raising `NoMethodError` (Mikhail
144 Dieterle)
145 * `any_instance` properly restores private methods (Sidu Ponnappa)
8e8e62f @justinko Refactor any_instance to be instance agnostic - Closes #58
justinko authored
146
3f1d77f @dchelimsky prep for 2.6.0
dchelimsky authored
147 ### 2.6.0 / 2011-05-12
4a02ebc @dchelimsky prep for 2.6.0.rc5
dchelimsky authored
148
3f1d77f @dchelimsky prep for 2.6.0
dchelimsky authored
149 [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
150
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
151 Enhancements
2d7caa5 @dchelimsky Changlog and some minor tweaks
dchelimsky authored
152
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
153 * Add support for `any_instance.stub` and `any_instance.should_receive` (Sidu
154 Ponnappa and Andy Lindeman)
155
156 Bug fixes
157
158 * fix bug in which multiple chains with shared messages ending in hashes failed
159 to return the correct value
ca2d837 @dchelimsky fix bug in which multiple chains with shared messages ending in hashes
dchelimsky authored
160
a6c98bd @dchelimsky prep for 2.5 release
dchelimsky authored
161 ### 2.5.0 / 2011-02-05
4e7ea7d @dchelimsky update history
dchelimsky authored
162
a6c98bd @dchelimsky prep for 2.5 release
dchelimsky authored
163 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.4.0...v2.5.0)
4e7ea7d @dchelimsky update history
dchelimsky authored
164
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
165 Bug fixes
166
167 * message expectation counts now work in combination with a stub (Damian
168 Nurzynski)
169 * fix failure message when message received with incorrect args (Josep M.
170 Bach)
3c467e9 @dchelimsky add history
dchelimsky authored
171
866f34a @dchelimsky prep for 2.4.0 release
dchelimsky authored
172 ### 2.4.0 / 2011-01-02
0358d7f @dchelimsky fix changelog link
dchelimsky authored
173
866f34a @dchelimsky prep for 2.4.0 release
dchelimsky authored
174 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.3.0...v2.4.0)
175
176 No functional changes in this release, which was made to align with the
177 rspec-core-2.4.0 release.
0358d7f @dchelimsky fix changelog link
dchelimsky authored
178
dd336af @dchelimsky prep for 2.3.0 release
dchelimsky authored
179 ### 2.3.0 / 2010-12-12
e16666a @dchelimsky history
dchelimsky authored
180
0358d7f @dchelimsky fix changelog link
dchelimsky authored
181 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.2.0...v2.3.0)
e16666a @dchelimsky history
dchelimsky authored
182
de283b3 @justinko Allow a `as_null_object` to be passed to `with`. Closes #98
justinko authored
183 Bug fixes
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
184
185 * Fix our Marshal extension so that it does not interfere with objects that
186 have their own `@mock_proxy` instance variable. (Myron Marston)
e16666a @dchelimsky history
dchelimsky authored
187
1024474 @dchelimsky prep for 2.2 release
dchelimsky authored
188 ### 2.2.0 / 2010-11-28
be136a4 @dchelimsky Added "rspec/mocks/standalone"
dchelimsky authored
189
190 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.1.0...v2.2.0)
191
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
192 Enhancements
193
194 * Added "rspec/mocks/standalone" for exploring the rspec-mocks in irb.
be136a4 @dchelimsky Added "rspec/mocks/standalone"
dchelimsky authored
195
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
196 Bug fix
197
198 * Eliminate warning on splat args without parens (Gioele Barabucci)
199 * Fix bug where `obj.should_receive(:foo).with(stub.as_null_object)` would pass
200 with a false positive.
8d35da8 @dchelimsky History
dchelimsky authored
201
506d9f6 @dchelimsky bump to 2.1.0
dchelimsky authored
202 ### 2.1.0 / 2010-11-07
31a9e6b @dchelimsky history
dchelimsky authored
203
506d9f6 @dchelimsky bump to 2.1.0
dchelimsky authored
204 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.1...v2.1.0)
31a9e6b @dchelimsky history
dchelimsky authored
205
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
206 Bug fixes
207
208 * Fix serialization of stubbed object (Josep M Bach)
31a9e6b @dchelimsky history
dchelimsky authored
209
0238b34 @dchelimsky prep for 2.0.0
dchelimsky authored
210 ### 2.0.0 / 2010-10-10
211
4830d09 @dchelimsky fix copy/paste error in history
dchelimsky authored
212 [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
213
82891fe @dchelimsky update history
dchelimsky authored
214 ### 2.0.0.rc / 2010-10-05
c94a566 @dchelimsky update history
dchelimsky authored
215
82891fe @dchelimsky update history
dchelimsky authored
216 [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0.rc)
c94a566 @dchelimsky update history
dchelimsky authored
217
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
218 Enhancements
c94a566 @dchelimsky update history
dchelimsky authored
219
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
220 * support passing a block to an expectation block (Nicolas Braem)
221 * `obj.should_receive(:msg) {|&block| ... }`
222
223 Bug fixes
224
225 * Fix YAML serialization of stub (Myron Marston)
226 * Fix rdoc rake task (Hans de Graaff)
c94a566 @dchelimsky update history
dchelimsky authored
227
f36ed16 @dchelimsky adjust history for beta.22 release
dchelimsky authored
228 ### 2.0.0.beta.22 / 2010-09-12
3c467e9 @dchelimsky add history
dchelimsky authored
229
f36ed16 @dchelimsky adjust history for beta.22 release
dchelimsky authored
230 [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
231
15199b8 @dchelimsky fix changelog formatting
dchelimsky authored
232 Bug fixes
233
234 * fixed regression that broke `obj.stub_chain(:a, :b => :c)`
235 * fixed regression that broke `obj.stub_chain(:a, :b) { :c }`
236 * `respond_to?` always returns true when using `as_null_object`
Something went wrong with that request. Please try again.