Don't actually need 36 notifications.
This commit is contained in:
parent
feb47df97e
commit
814ef38fa9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue