From 3e569c0c303a40191907693f23a85c84d6c85eb7 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Thu, 6 Jan 2011 17:26:30 -0800 Subject: [PATCH] using set comparison instead of strict array comp. --- spec/controllers/notifications_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/notifications_controller_spec.rb b/spec/controllers/notifications_controller_spec.rb index 152c98a8b..438451905 100644 --- a/spec/controllers/notifications_controller_spec.rb +++ b/spec/controllers/notifications_controller_spec.rb @@ -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