[rspec-users] rspec will_paginate

Dylan Egan dylanegan at gmail.com
Thu Jun 14 17:57:33 EDT 2007


>   before do
>     @tickets = mock_model(Ticket)
>     Ticket.stub!(:find).and_return([@ticket])
>   end

Try Ticket.stub!(:filter_status_by).and_return([@tickets])


More information about the rspec-users mailing list