[Rspec-devel] Mock API - should_not_receive

DeeJay smartgpx at gmail.com
Wed Aug 30 10:29:03 EDT 2006

Aslak replied:

*> I would hope to be able to write -
*>* specify "unwanted output" do
*>*   my_mock_output.should_not_receive(:msg).with("unwanted **text")
*>* end
I would do:

specify "should not receive unwanted text" do
  # don't expect anything on the mock - it will barf if :msg is sent to it



Thanks, but DavidC has already commited code for this in response to 5570.

[5571, which I generated independently, can also be closed I think.]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-devel/attachments/20060830/0fef0fbc/attachment.html 

More information about the Rspec-devel mailing list