Set a limit on the second page
This commit is contained in:
parent
46e9be88d1
commit
8bbb142c85
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue