RSpec's 'test double' framework, with support for stubbing and mocking

Edit Package rubygem-rspec-mocks
https://github.com/rspec/rspec-mocks

RSpec's 'test double' framework, with support for stubbing and mocking.

Refresh
Refresh
Source Files
Filename Size Changed
rspec-mocks-2.12.0.gem 0000070144 68.5 KB
rubygem-rspec-mocks.changes 0000001527 1.49 KB
rubygem-rspec-mocks.spec 0000002398 2.34 KB
Revision 4 (latest revision is 65)
Stephan Kulow's avatar Stephan Kulow (coolo) committed (revision 4)
- updated to version 2.12.0
 Enhancements
 
 * `and_raise` can accept an exception class and message, more closely
   matching `Kernel#raise` (e.g., `foo.stub(:bar).and_raise(RuntimeError, "message")`)
   (Bas Vodde)
 * Add `and_call_original`, which will delegate the message to the
   original method (Myron Marston).
 
 Deprecations:
 
 * Add deprecation warning when using `and_return` with `should_not_receive`
   (Neha Kumari)
Comments 0
openSUSE Build Service is sponsored by