From 8bbb142c85afdcab03f19a8ecdf3e3ff34ed5cac Mon Sep 17 00:00:00 2001 From: Nick van der Burgt Date: Wed, 29 Dec 2010 12:32:24 +0100 Subject: [PATCH] Set a limit on the second page --- spec/controllers/notifications_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/notifications_controller_spec.rb b/spec/controllers/notifications_controller_spec.rb index 78e6955e4..152c98a8b 100644 --- a/spec/controllers/notifications_controller_spec.rb +++ b/spec/controllers/notifications_controller_spec.rb @@ -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