diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index 4e2502dc6..fe5e0424e 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 00d905a8e..3c0adb31c 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