Skip to content
Extraits de code Groupes Projets
Valider d1f2bc5f rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

Remove object_path spec

parent 934ae80a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -10,18 +10,6 @@ describe ApplicationHelper do ...@@ -10,18 +10,6 @@ describe ApplicationHelper do
@person = Factory.create(:person) @person = Factory.create(:person)
end end
describe "#object_path" do
it "returns an empty string if object is nil" do
object_path(nil).should == ""
end
it "returns person path if it's a person" do
object_path(@person).should == person_path(@person)
end
it "returns person path if it's a user" do
object_path(@user).should == person_path(@user.person)
end
end
describe "#person_image_link" do describe "#person_image_link" do
it "returns an empty string if person is nil" do it "returns an empty string if person is nil" do
person_image_link(nil).should == "" person_image_link(nil).should == ""
......
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