[rspec-users] stub! and stubs

Sam Woodard lists at ruby-forum.com
Tue Oct 13 10:01:09 EDT 2009

Things seem to be working better now that I am using just Mocha, 
however, I am still having problems with 
Foo.any_instance.stubs(:valid?).returns(false).  I later tests, valid is 
still stubbed out to be false.  How to I stub something for exactly the 
duration of one example?

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list