From 13740da9b956bf3641c84c088a6044297e8a4d15 Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 9 Dec 2010 14:37:07 -0800 Subject: [PATCH] fix for people controller where Person.search was returning a non-deterministic order of people --- spec/controllers/people_controller_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index 86e0a1e82..c281f99e0 100644 --- a/spec/controllers/people_controller_spec.rb +++ b/spec/controllers/people_controller_spec.rb @@ -26,12 +26,15 @@ describe PeopleController do user.activate_contact(@everyone[4], aspect) user.activate_contact(@everyone[5], aspect) - @people = Person.search('eugene') + user.reload + user.aspects.reload + @people = @everyone @people.length.should == 10 @hashes = @controller.hashes_for_people(@people, user.aspects) end it 'has the correct result for no relationship' do hash = @hashes.first + hash[:person].should == @people.first hash[:contact].should be_false hash[:request].should be_false