[rspec-users] How to test 'Paginate'?

Shaker flyeminent at hotmail.com
Tue Sep 11 01:24:09 EDT 2007

Great Hi to everyone:
    I don't know how to write spec for a controller method which has
'paginate'. Is there any Rspec API for it?
To illustrate, I would like to post an example.
class PeopleController
  def  paginate_method
    hash = Hash.new
    hash[:people_page], hash[:people] = paginate :people, ...#order and
conditions omitted
    render :partial=>"/index", :layout=>false, :locals=>{:hash=>hash}
  Does anyone who knows how to write spec on this method? I appreciate any
help. Thank you. 
View this message in context: http://www.nabble.com/How-to-test-%27Paginate%27--tf4420350.html#a12608257
Sent from the rspec-users mailing list archive at Nabble.com.

More information about the rspec-users mailing list