- Bug fixes
- message expectation counts now work in combination with a stub (Damian Nurzynski)
- fix failure message when message received with incorrect args (Josep M. Bach)
No functional changes in this release, which was made to align with the rspec-core-2.4.0 release.
- Bug fixes
- Fix our Marshal extension so that it does not interfere with objects that have their own @mock_proxy instance variable. (Myron Marston)
-
Enhancements
- Added "rspec/mocks/standalone" for exploring the rspec-mocks in irb.
-
Bug fix
- Eliminate warning on splat args without parens (Gioele Barabucci)
- Fix bug where obj.should_receive(:foo).with(stub.as_null_object) would
pass with a false positive.
- Bug fixes
- Fix serialization of stubbed object (Josep M Bach)
-
Enhancements
- support passing a block to an expecttation block (Nicolas Braem)
- obj.should_receive(:msg) {|&block| ... }
- support passing a block to an expecttation block (Nicolas Braem)
-
Bug fixes
- Fix YAML serialization of stub (Myron Marston)
- Fix rdoc rake task (Hans de Graaff)
- Bug fixes
- fixed regression that broke obj.stub_chain(:a, :b => :c)
- fixed regression that broke obj.stub_chain(:a, :b) { :c }
- respond_to? always returns true when using as_null_object