forked from rspec/rspec.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile.Changelog.html
447 lines (447 loc) · 20.8 KB
/
file.Changelog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>
File: Changelog
— Documentation by YARD 0.8.0
</title>
<link rel="stylesheet" href="/stylesheets/docs/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="/stylesheets/docs/common.css" type="text/css" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
hasFrames = window.top.frames.main ? true : false;
relpath = '';
framesUrl = "frames.html#!" + escape(window.location.href);
</script>
<script type="text/javascript" charset="utf-8" src="/javascripts/docs/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="/javascripts/docs/app.js"></script>
</head>
<body>
<div id="header">
<div id="menu">
<a href="_index.html">Index</a> »
<span class="title">File: Changelog</span>
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
<div id="search">
<a class="full_list_link" id="class_list_link"
href="class_list.html">
Class List
</a>
<a class="full_list_link" id="method_list_link"
href="method_list.html">
Method List
</a>
<a class="full_list_link" id="file_list_link"
href="file_list.html">
File List
</a>
</div>
<div class="clear"></div>
</div>
<iframe id="search_frame"></iframe>
<div id="content"><div id='filecontents'><h3>2.14.6 / 2014-02-20</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.14.5...v2.14.6">full changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Ensure <code>any_instance</code> method stubs and expectations are torn down regardless of
expectation failures. (Sam Phippen)</li>
</ul>
<h3>2.14.5 / 2014-02-01</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.14.4...v2.14.5">full changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix regression that caused block implementations to not receive all
args on 1.8.7 if the block also receives a block, due to Proc#arity
reporting <code>1</code> no matter how many args the block receives if it
receives a block, too. (Myron Marston)</li>
</ul>
<h3>2.14.4 / 2013-10-15</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.14.3...v2.14.4">full changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix issue where unstubing methods on "any instances" would not
remove stubs on existing instances (Jon Rowe)</li>
<li>Fix issue with receive(:message) do ... end precedence preventing
the usage of modifications (<code>and_return</code> etc) (Jon Rowe)</li>
</ul>
<h3>2.14.3 / 2013-08-08</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.14.2...v2.14.3">full changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix stubbing some instance methods for classes whose hierarchy includes
a prepended Module (Bradley Schaefer)</li>
</ul>
<h3>2.14.2 / 2013-07-30</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.14.1...v2.14.2">full changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Fix <code>as_null_object</code> doubles so that they return <code>nil</code> from <code>to_ary</code>
(Jon Rowe).</li>
<li>Fix regression in 2.14 that made <code>stub!</code> (with an implicit receiver)
return a test double rather than stub a method (Myron Marston).</li>
</ul>
<h3>2.14.1 / 2013-07-07</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.14.0...v2.14.1">full changelog</a></p>
<p>Bug Fixes:</p>
<ul>
<li>Restore <code>double.as_null_object</code> behavior from 2.13 and earlier: a
double's nullness persisted between examples in earlier examples.
While this is not an intended use case (test doubles are meant to live
for only one example), we don't want to break behavior users rely
on in a minor relase. This will be deprecated in 2.99 and removed
in 3.0. (Myron Marston)</li>
</ul>
<h3>2.14.0 / 2013-07-06</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.14.0.rc1...v2.14.0">full changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Document test spies in the readme. (Adarsh Pandit)</li>
<li>Add an <code>array_including</code> matcher. (Sam Phippen)</li>
<li>Add a syntax-agnostic API for mocking or stubbing a method. This is
intended for use by libraries such as rspec-rails that need to mock
or stub a method, and work regardless of the syntax the user has
configured (Paul Annesley, Myron Marston and Sam Phippen).</li>
</ul>
<p>Bug Fixes:</p>
<ul>
<li>Fix <code>double</code> so that it sets up passed stubs correctly regardless of
the configured syntax (Paul Annesley).</li>
<li>Allow a block implementation to be used in combination with
<code>and_yield</code>, <code>and_raise</code>, <code>and_return</code> or <code>and_throw</code>. This got fixed
in 2.13.1 but failed to get merged into master for the 2.14.0.rc1
release (Myron Marston).</li>
<li><code>Marshal.dump</code> does not unnecessarily duplicate objects when rspec-mocks has
not been fully initialized. This could cause errors when using <code>spork</code> or
similar preloading gems (Andy Lindeman).</li>
</ul>
<h3>2.14.0.rc1 / 2013-05-27</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.14.0.rc1">full changelog</a></p>
<p>Enhancements:</p>
<ul>
<li>Refactor internals so that the mock proxy methods and state are held
outside of the mocked object rather than inside it. This paves the way
for future syntax enhancements and removes the need for some hacky
work arounds for <code>any_instance</code> dup'ing and <code>YAML</code> serialization,
among other things. Note that the code now relies upon <code>__id__</code>
returning a unique, consistent value for any object you want to
mock or stub (Myron Marston).</li>
<li>Add support for test spies. This allows you to verify a message
was received afterwards using the <code>have_received</code> matcher.
Note that you must first stub the method or use a null double.
(Joe Ferris and Joël Quenneville)</li>
<li>Make <code>at_least</code> and <code>at_most</code> style receive expectations print that they were
expecting at least or at most some number of calls, rather than just the
number of calls given in the expectation (Sam Phippen)</li>
<li>Make <code>with</code> style receive expectations print the args they were expecting, and
the args that they got (Sam Phippen)</li>
<li>Fix some warnings seen under ruby 2.0.0p0 (Sam Phippen).</li>
<li>Add a new <code>:expect</code> syntax for message expectations
(Myron Marston and Sam Phippen).</li>
</ul>
<p>Bug fixes</p>
<ul>
<li>Fix <code>any_instance</code> so that a frozen object can be <code>dup</code>'d when methods
have been stubbed on that type using <code>any_instance</code> (Jon Rowe).</li>
<li>Fix <code>and_call_original</code> so that it properly raises an <code>ArgumentError</code>
when the wrong number of args are passed (Jon Rowe).</li>
<li>Fix <code>double</code> on 1.9.2 so you can wrap them in an Array
using <code>Array(my_double)</code> (Jon Rowe).</li>
<li>Fix <code>stub_const</code> and <code>hide_const</code> to handle constants that redefine <code>send</code>
(Sam Phippen).</li>
<li>Fix <code>Marshal.dump</code> extension so that it correctly handles nil.
(Luke Imhoff, Jon Rowe)</li>
<li>Fix isolation of <code>allow_message_expectations_on_nil</code> (Jon Rowe)</li>
<li>Use inspect to format actual arguments on expectations in failure messages (#280, Ben Langfeld)</li>
<li>Protect against improperly initialised test doubles (#293) (Joseph Shraibman and Jon Rowe)</li>
</ul>
<p>Deprecations</p>
<ul>
<li>Deprecate <code>stub</code> and <code>mock</code> as aliases for <code>double</code>. <code>double</code> is the
best term for creating a test double, and it reduces confusion to
have only one term (Michi Huber).</li>
<li>Deprecate <code>stub!</code> and <code>unstub!</code> in favor of <code>stub</code> and <code>unstub</code>
(Jon Rowe).</li>
<li>Deprecate <code>at_least(0).times</code> and <code>any_number_of_times</code> (Michi Huber).</li>
</ul>
<h3>2.13.1 / 2013-04-06</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.13.0...v2.13.1">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Allow a block implementation to be used in combination with
<code>and_yield</code>, <code>and_raise</code>, <code>and_return</code> or <code>and_throw</code> (Myron Marston).</li>
</ul>
<h3>2.13.0 / 2013-02-23</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.12.2...v2.13.0">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Fix bug that caused weird behavior when a method that had
previously been stubbed with multiple return values (e.g.
<code>obj.stub(:foo).and_return(1, 2)</code>) was later mocked with a
single return value (e.g. <code>obj.should_receive(:foo).once.and_return(1)</code>).
(Myron Marston)</li>
<li>Fix bug related to a mock expectation for a method that already had
multiple stubs with different <code>with</code> constraints. Previously, the
first stub was used, even though it may not have matched the passed
args. The fix defers this decision until the message is received so
that the proper stub response can be chosen based on the passed
arguments (Myron Marston).</li>
<li>Do not call <code>nil?</code> extra times on a mocked object, in case <code>nil?</code>
itself is expected a set number of times (Myron Marston).</li>
<li>Fix <code>missing_default_stub_error</code> message so array args are handled
properly (Myron Marston).</li>
<li>Explicitly disallow <code>any_instance.unstub!</code> (Ryan Jones).</li>
<li>Fix <code>any_instance</code> stubbing so that it works with <code>Delegator</code>
subclasses (Myron Marston).</li>
<li>Fix <code>and_call_original</code> so that it works with <code>Delegator</code> subclasses
(Myron Marston).</li>
<li>Fix <code>any_instance.should_not_receive</code> when <code>any_instance.should_receive</code>
is used on the same class in the same example. Previously it would
wrongly report a failure even when the message was not received
(Myron Marston).</li>
</ul>
<h3>2.12.2 / 2013-01-27</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.12.1...v.2.12.2">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Fix <code>and_call_original</code> to work properly for methods defined
on a module extended onto an object instance (Myron Marston).</li>
<li>Fix <code>stub_const</code> with an undefined constnat name to work properly
with constant strings that are prefixed with <code>::</code> -- and edge case
I missed in the bug fix in the 2.12.1 release (Myron Marston).</li>
<li>Ensure method visibility on a partial mock is restored after reseting
method stubs, even on a singleton module (created via <code>extend self</code>)
when the method visibility differs between the instance and singleton
versions (Andy Lindeman).</li>
</ul>
<h3>2.12.1 / 2012-12-21</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.12.0...v2.12.1">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Fix <code>any_instance</code> to support <code>and_call_original</code>.
(Myron Marston)</li>
<li>Properly restore stubbed aliased methods on rubies
that report the incorrect owner (Myron Marston and Andy Lindeman).</li>
<li>Fix <code>hide_const</code> and <code>stub_const</code> with a defined constnat name to
work properly with constant strings that are prefixed with <code>::</code> (Myron Marston).</li>
</ul>
<h3>2.12.0 / 2012-11-12</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.11.3...v2.12.0">full changelog</a></p>
<p>Enhancements</p>
<ul>
<li><code>and_raise</code> can accept an exception class and message, more closely
matching <code>Kernel#raise</code> (e.g., <code>foo.stub(:bar).and_raise(RuntimeError, "message")</code>)
(Bas Vodde)</li>
<li>Add <code>and_call_original</code>, which will delegate the message to the
original method (Myron Marston).</li>
</ul>
<p>Deprecations:</p>
<ul>
<li>Add deprecation warning when using <code>and_return</code> with <code>should_not_receive</code>
(Neha Kumari)</li>
</ul>
<h3>2.11.3 / 2012-09-19</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.11.2...v2.11.3">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Fix <code>:transfer_nested_constants</code> option of <code>stub_const</code> so that it
doesn't blow up when there are inherited constants. (Myron Marston)</li>
<li><code>any_instance</code> stubs can be used on classes that override <code>Object#method</code>.
(Andy Lindeman)</li>
<li>Methods stubbed with <code>any_instance</code> are unstubbed after the test finishes.
(Andy Lindeman)</li>
<li>Fix confusing error message when calling a mocked class method an
extra time with the wrong arguments (Myron Marston).</li>
</ul>
<h3>2.11.2 / 2012-08-11</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.11.1...v2.11.2">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Don't modify <code>dup</code> on classes that don't support <code>dup</code> (David Chelimsky)</li>
<li>Fix <code>any_instance</code> so that it works properly with methods defined on
a superclass. (Daniel Eguzkiza)</li>
<li>Fix <code>stub_const</code> so that it works properly for nested constants that
share a name with a top-level constant (e.g. "MyGem::Hash"). (Myron
Marston)</li>
</ul>
<h3>2.11.1 / 2012-07-09</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.11.0...v2.11.1">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Fix <code>should_receive</code> so that when it is called on an <code>as_null_object</code>
double with no implementation, and there is a previous explicit stub
for the same method, the explicit stub remains (rather than being
overriden with the null object implementation--<code>return self</code>). (Myron Marston)</li>
</ul>
<h3>2.11.0 / 2012-07-07</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.10.1...v2.11.0">full changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Expose ArgumentListMatcher as a formal API
<ul>
<li>supports use by 3rd party mock frameworks like Surrogate</li>
</ul></li>
<li>Add <code>stub_const</code> API to stub constants for the duration of an
example (Myron Marston).</li>
</ul>
<p>Bug fixes</p>
<ul>
<li>Fix regression of edge case behavior. <code>double.should_receive(:foo) { a }</code>
was causing a NoMethodError when <code>double.stub(:foo).and_return(a, b)</code>
had been setup before (Myron Marston).</li>
<li>Infinite loop generated by using <code>any_instance</code> and <code>dup</code>. (Sidu Ponnappa @kaiwren)</li>
<li><code>double.should_receive(:foo).at_least(:once).and_return(a)</code> always returns a
even if <code>:foo</code> is already stubbed.</li>
<li>Prevent infinite loop when interpolating a null double into a string
as an integer (<code>"%i" % double.as_null_object</code>). (Myron Marston)</li>
<li>Fix <code>should_receive</code> so that null object behavior (e.g. returning
self) is preserved if no implementation is given (Myron Marston).</li>
<li>Fix <code>and_raise</code> so that it raises <code>RuntimeError</code> rather than
<code>Exception</code> by default, just like ruby does. (Andrew Marshall)</li>
</ul>
<h3>2.10.1 / 2012-05-05</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.10.0...v2.10.1">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>fix regression of edge case behavior
(<a href="https://github.com/rspec/rspec-mocks/issues/132">https://github.com/rspec/rspec-mocks/issues/132</a>)
<ul>
<li>fixed failure of <code>object.should_receive(:message).at_least(0).times.and_return value</code></li>
<li>fixed failure of <code>object.should_not_receive(:message).and_return value</code></li>
</ul></li>
</ul>
<h3>2.10.0 / 2012-05-03</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.9.0...v2.10.0">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>fail fast when an <code>exactly</code> or <code>at_most</code> expectation is exceeded</li>
</ul>
<h3>2.9.0 / 2012-03-17</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.8.0...v2.9.0">full changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Support order constraints across objects (preethiramdev)</li>
</ul>
<p>Bug fixes</p>
<ul>
<li>Allow a <code>as_null_object</code> to be passed to <code>with</code></li>
<li>Pass proc to block passed to stub (Aubrey Rhodes)</li>
<li>Initialize child message expectation args to match any args (#109 -
preethiramdev)</li>
</ul>
<h3>2.8.0 / 2012-01-04</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc2...v2.8.0">full changelog</a></p>
<p>No changes for this release. Just releasing with the other rspec gems.</p>
<h3>2.8.0.rc2 / 2011-12-19</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2">full changelog</a></p>
<p>No changes for this release. Just releasing with the other rspec gems.</p>
<h3>2.8.0.rc1 / 2011-11-06</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.7.0...v2.8.0.rc1">full changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Eliminate Ruby warnings (Matijs van Zuijlen)</li>
</ul>
<h3>2.7.0 / 2011-10-16</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.6.0...v2.7.0">full changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Use <code>__send__</code> rather than <code>send</code> (alextk)</li>
<li>Add support for <code>any_instance.stub_chain</code> (Sidu Ponnappa)</li>
<li>Add support for <code>any_instance</code> argument matching based on <code>with</code> (Sidu
Ponnappa and Andy Lindeman)</li>
</ul>
<p>Changes</p>
<ul>
<li>Check for <code>failure_message_for_should</code> or <code>failure_message</code> instead of
<code>description</code> to detect a matcher (Tibor Claassen)</li>
</ul>
<p>Bug fixes</p>
<ul>
<li>pass a hash to <code>any_instance.stub</code>. (Justin Ko)</li>
<li>allow <code>to_ary</code> to be called without raising <code>NoMethodError</code> (Mikhail
Dieterle)</li>
<li><code>any_instance</code> properly restores private methods (Sidu Ponnappa)</li>
</ul>
<h3>2.6.0 / 2011-05-12</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.5.0...v2.6.0">full changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Add support for <code>any_instance.stub</code> and <code>any_instance.should_receive</code> (Sidu
Ponnappa and Andy Lindeman)</li>
</ul>
<p>Bug fixes</p>
<ul>
<li>fix bug in which multiple chains with shared messages ending in hashes failed
to return the correct value</li>
</ul>
<h3>2.5.0 / 2011-02-05</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.4.0...v2.5.0">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>message expectation counts now work in combination with a stub (Damian
Nurzynski)</li>
<li>fix failure message when message received with incorrect args (Josep M.
Bach)</li>
</ul>
<h3>2.4.0 / 2011-01-02</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.3.0...v2.4.0">full changelog</a></p>
<p>No functional changes in this release, which was made to align with the
rspec-core-2.4.0 release.</p>
<h3>2.3.0 / 2010-12-12</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.2.0...v2.3.0">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Fix our Marshal extension so that it does not interfere with objects that
have their own <code>@mock_proxy</code> instance variable. (Myron Marston)</li>
</ul>
<h3>2.2.0 / 2010-11-28</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.1.0...v2.2.0">full changelog</a></p>
<p>Enhancements</p>
<ul>
<li>Added "rspec/mocks/standalone" for exploring the rspec-mocks in irb.</li>
</ul>
<p>Bug fix</p>
<ul>
<li>Eliminate warning on splat args without parens (Gioele Barabucci)</li>
<li>Fix bug where <code>obj.should_receive(:foo).with(stub.as_null_object)</code> would pass
with a false positive.</li>
</ul>
<h3>2.1.0 / 2010-11-07</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.0.1...v2.1.0">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>Fix serialization of stubbed object (Josep M Bach)</li>
</ul>
<h3>2.0.0 / 2010-10-10</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0">full changelog</a></p>
<h3>2.0.0.rc / 2010-10-05</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.22...v2.0.0.rc">full changelog</a></p>
<p>Enhancements</p>
<ul>
<li>support passing a block to an expectation block (Nicolas Braem)
<ul>
<li><code>obj.should_receive(:msg) {|&block| ... }</code></li>
</ul></li>
</ul>
<p>Bug fixes</p>
<ul>
<li>Fix YAML serialization of stub (Myron Marston)</li>
<li>Fix rdoc rake task (Hans de Graaff)</li>
</ul>
<h3>2.0.0.beta.22 / 2010-09-12</h3>
<p><a href="http://github.com/rspec/rspec-mocks/compare/v2.0.0.beta.20...v2.0.0.beta.22">full changelog</a></p>
<p>Bug fixes</p>
<ul>
<li>fixed regression that broke <code>obj.stub_chain(:a, :b => :c)</code></li>
<li>fixed regression that broke <code>obj.stub_chain(:a, :b) { :c }</code></li>
<li><code>respond_to?</code> always returns true when using <code>as_null_object</code></li>
</ul>
</div></div>
<div id="footer">
Generated on Thu Jan 29 14:04:43 2015 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.0 (ruby-2.1.5).
</div>
</body>
</html>