using set comparison instead of strict array comp.
This commit is contained in:
parent
8f2cad776b
commit
3e569c0c30
1 changed files with 2 additions and 2 deletions
|
|
@ -40,10 +40,10 @@ describe NotificationsController do
|
|||
end
|
||||
|
||||
get :index
|
||||
assigns[:notifications].should == Notification.all(:user_id => user.id, :limit => 25)
|
||||
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, :limit => 25)
|
||||
assigns[:notifications].should =~ Notification.all(:user_id => user.id, :offset => 25, :limit => 25)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue