Skip to content
Extraits de code Groupes Projets
Valider 100625d1 rédigé par Jonne Haß's avatar Jonne Haß
Parcourir les fichiers

fix people and person specs for the guid stuff on psql

parent 89472992
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -152,7 +152,7 @@ describe PeopleController do ...@@ -152,7 +152,7 @@ describe PeopleController do
end end
it "404s if no person is found via id" do it "404s if no person is found via id" do
get :show, :id => 3920397846 get :show, :id => "3d920397846"
response.code.should == "404" response.code.should == "404"
end end
...@@ -260,7 +260,7 @@ describe PeopleController do ...@@ -260,7 +260,7 @@ describe PeopleController do
it 'throws 404 if the person is remote' do it 'throws 404 if the person is remote' do
p = Factory(:person) p = Factory(:person)
get :show, :id => p.id get :show, :id => p.to_param
response.status.should == 404 response.status.should == 404
end end
end end
......
...@@ -64,7 +64,7 @@ describe Person do ...@@ -64,7 +64,7 @@ describe Person do
it 'throws active record not found exceptions if no person is found via id' do it 'throws active record not found exceptions if no person is found via id' do
expect{ expect{
Person.find_from_guid_or_username(:id => 213123) Person.find_from_guid_or_username(:id => "2d13123")
}.to raise_error ActiveRecord::RecordNotFound }.to raise_error ActiveRecord::RecordNotFound
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter