Set a limit on the second page

This commit is contained in:
Nick van der Burgt 2010-12-29 12:32:24 +01:00
parent 46e9be88d1
commit 8bbb142c85

View file

@ -43,7 +43,7 @@ describe NotificationsController do
assigns[:notifications].should == Notification.all(:user_id => user.id, :limit => 25)
get :index, :page => 2
assigns[:notifications].should == Notification.all(:user_id => user.id, :offset => 25)
assigns[:notifications].should == Notification.all(:user_id => user.id, :offset => 25, :limit => 25)
end
end
end