From 100625d18cf9d33120a109f62400319de13d1b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= <me@mrzyx.de> Date: Tue, 24 Jan 2012 23:02:07 +0100 Subject: [PATCH] fix people and person specs for the guid stuff on psql --- spec/controllers/people_controller_spec.rb | 4 ++-- spec/models/person_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index 4e2502dc65..fe5e0424ec 100644 --- a/spec/controllers/people_controller_spec.rb +++ b/spec/controllers/people_controller_spec.rb @@ -152,7 +152,7 @@ describe PeopleController do end it "404s if no person is found via id" do - get :show, :id => 3920397846 + get :show, :id => "3d920397846" response.code.should == "404" end @@ -260,7 +260,7 @@ describe PeopleController do it 'throws 404 if the person is remote' do p = Factory(:person) - get :show, :id => p.id + get :show, :id => p.to_param response.status.should == 404 end end diff --git a/spec/models/person_spec.rb b/spec/models/person_spec.rb index 00d905a8e2..3c0adb31c1 100644 --- a/spec/models/person_spec.rb +++ b/spec/models/person_spec.rb @@ -64,7 +64,7 @@ describe Person do it 'throws active record not found exceptions if no person is found via id' do expect{ - Person.find_from_guid_or_username(:id => 213123) + Person.find_from_guid_or_username(:id => "2d13123") }.to raise_error ActiveRecord::RecordNotFound end -- GitLab