using set comparison instead of strict array comp.

This commit is contained in:
zhitomirskiyi 2011-01-06 17:26:30 -08:00
parent 8f2cad776b
commit 3e569c0c30

View file

@ -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