Don't actually need 36 notifications.

This commit is contained in:
Sarah Mei 2011-02-21 13:20:39 -08:00
parent feb47df97e
commit 814ef38fa9

View file

@ -46,7 +46,7 @@ describe NotificationsController do
describe '#index' do describe '#index' do
it 'paginates the notifications' do it 'paginates the notifications' do
35.times do 26.times do
Factory(:notification, :recipient => @user) Factory(:notification, :recipient => @user)
end end
@ -54,7 +54,7 @@ describe NotificationsController do
assigns[:notifications].count.should == 25 assigns[:notifications].count.should == 25
get :index, :page => 2 get :index, :page => 2
assigns[:notifications].count.should == 10 assigns[:notifications].count.should == 1
end end
end end
end end