From 8a19e9f961306299c38eef82ed8edc84e415452a Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 6 Dec 2010 13:56:40 -0800 Subject: [PATCH] Fix spec --- spec/controllers/people_controller_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index eb3a8c2b9..cb53a3ad7 100644 --- a/spec/controllers/people_controller_spec.rb +++ b/spec/controllers/people_controller_spec.rb @@ -61,8 +61,9 @@ describe PeopleController do it "assigns hashes" do eugene2 = Factory.create(:person, :profile => {:first_name => "Eugene", :last_name => "w"}) get :index, :q => "Eu" - assigns[:hashes][0][:person].should == @eugene - assigns[:hashes][0][:person].should == eugene2 + people = assigns[:hashes].map{|h| h[:person]} + people.should include @eugene + people.should include eugene2 end it "assigns people" do eugene2 = Factory.create(:person, :profile => {:first_name => "Eugene", :last_name => "w"})