Bug fixes
- fail fast when an
exactly
orat_most
expectation is exceeded
Enhancements
- Support order constraints across objects (preethiramdev)
Bug fixes
- Allow a
as_null_object
to be passed towith
- Pass proc to block passed to stub (Aubrey Rhodes)
- Initialize child message expectation args to match any args (#109 - preethiramdev)
No changes for this release. Just releasing with the other rspec gems.
No changes for this release. Just releasing with the other rspec gems.
Enhancements
- Eliminate Ruby warnings (Matijs van Zuijlen)
Enhancements
- Use
__send__
rather thansend
(alextk) - Add support for
any_instance.stub_chain
(Sidu Ponnappa) - Add support for
any_instance
argument matching based onwith
(Sidu Ponnappa and Andy Lindeman)
Changes
- Check for
failure_message_for_should
orfailure_message
instead ofdescription
to detect a matcher (Tibor Claassen)
Bug fixes
- pass a hash to
any_instance.stub
. (Justin Ko) - allow
to_ary
to be called without raisingNoMethodError
(Mikhail Dieterle) any_instance
properly restores private methods (Sidu Ponnappa)
Enhancements
- Add support for
any_instance.stub
andany_instance.should_receive
(Sidu Ponnappa and Andy Lindeman)
Bug fixes
- fix bug in which multiple chains with shared messages ending in hashes failed to return the correct value
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 expectation block (Nicolas Braem)
obj.should_receive(:msg) {|&block| ... }
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 usingas_null_object