[rspec-users] Mocking find_by_sql

David Chelimsky dchelimsky at gmail.com
Fri Jun 5 17:05:30 EDT 2009


On Fri, Jun 5, 2009 at 3:33 PM, Fernando Perez <lists at ruby-forum.com> wrote:
> Damn I can't mock will_paginate's paginate method either!!!

Same deal as your other post about find_by_sql. Set the message
expectation on the method on the class:

Post.should_receive(:paginate)

> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list