[rspec-users] should_receive - how to allow multiple calls
lists at ruby-forum.com
Tue Jul 15 04:00:00 EDT 2008
info( 'attempting to sign in' ) # I want to test it
info( 'signed in' ) # I don't care about it
@scraper.should_receive( :info ).with( 'attempting to sign in'
).at_least( 1 ).times
expected :info with ("attempting to sign in") but received it with
This is strange. How to test if method was called with specific argument
AND don't care about other possible calls of that method?
Posted via http://www.ruby-forum.com/.
More information about the rspec-users