[rspec-users] How to stub forever?

Piotr Wlodarek lists at ruby-forum.com
Fri Jul 11 05:00:32 EDT 2008


How to stub a method for multiple calls?

The calls are done in a loop.

I expect:
@agent.stub!( :submit ).multiple_times.and_return( @account_details_page
)
..to stub submit method "forever" (any number of calls).
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list