Re: [rspec-users] How to stub forever?

2008-07-11 Thread Piotr Wlodarek
David Chelimsky wrote: > On 7/11/08, Piotr Wlodarek <[EMAIL PROTECTED]> wrote: >> >> 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 "foreve

Re: [rspec-users] How to stub forever?

2008-07-11 Thread David Chelimsky
On 7/11/08, Piotr Wlodarek <[EMAIL PROTECTED]> wrote: > > 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). Stubs w

[rspec-users] How to stub forever?

2008-07-11 Thread Piotr Wlodarek
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/.