dchelimsky at gmail.com
Wed Oct 11 17:53:39 EDT 2006
Inspired by a conversation on the mocha list, I added the ability to
mix stubs w/ mocks on the same methods.
Here's what it allows:
context "a mock" do
specify "can stub! and mock the same message" do
mock = mock("stubbing mock")
Basically, the stub will be invoked for any calls to :msg without :arg.
Does this seem useful? Check out the trunk if you think so and give it a shot.
More information about the Rspec-users