fix people and person specs for the guid stuff on psql
This commit is contained in:
parent
89472992cc
commit
100625d18c
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue