diff options
author | Maxwell Salzberg <maxwell@joindiaspora.com> | 2011-07-13 06:25:57 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-22 01:32:10 +0400 |
commit | eee2225f04fedfbed6ca8081069108ce222c83d1 (patch) | |
tree | ffabe6726f95c32cc65b4c945d9cd36a82221ab9 /spec | |
parent | df62f58156c7f501f6916ecde900845a798fdf6e (diff) |
rspec is green
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/people_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index eadac9b60..7bb2b4d95 100644 --- a/spec/controllers/people_controller_spec.rb +++ b/spec/controllers/people_controller_spec.rb @@ -39,7 +39,7 @@ describe PeopleController do :profile => Factory.build(:profile, :first_name => "Eugene", :last_name => "w")) get :index, :q => "Eug" - assigns[:people].should =~ [@eugene, eugene2] + assigns[:people].map{|x| x.id}.should =~ [@eugene.id, eugene2.id] end it "excludes people that are not searchable" do @@ -55,7 +55,7 @@ describe PeopleController do :profile => Factory.build(:profile, :first_name => "Eugene", :last_name => "w", :searchable => false)) get :index, :q => "eugene@example.org" - assigns[:people].should =~ [eugene2] + assigns[:people][0].id.should == eugene2.id end it "does not redirect to person page if there is exactly one match" do |