[rspec-users] How do I specify that a class does not receive any message

Andrew Premdas apremdas at gmail.com
Tue Aug 21 20:02:10 UTC 2012


I want to write

it "should ..." do
  Client.should_not_receive(any_message)
  # do something here that might do Client.xxx
end

TIA

Andrew

-- 
------------------------
Andrew Premdas
blog.andrew.premdas.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120821/b3ac6708/attachment.html>


More information about the rspec-users mailing list