Skip to content
Extraits de code Groupes Projets
Valider 59402928 rédigé par zhitomirskiyi's avatar zhitomirskiyi
Parcourir les fichiers

build should be green now

parent 7302a547
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -4,6 +4,7 @@ Feature: invitation acceptance ...@@ -4,6 +4,7 @@ Feature: invitation acceptance
Given I have been invited by an admin Given I have been invited by an admin
And I am on my acceptance form page And I am on my acceptance form page
And I fill in "Username" with "ohai" And I fill in "Username" with "ohai"
And I fill in "Email" with "woot@sweet.com"
And I fill in "user_password" with "secret" And I fill in "user_password" with "secret"
And I fill in "Password confirmation" with "secret" And I fill in "Password confirmation" with "secret"
And I press "Sign up" And I press "Sign up"
...@@ -22,6 +23,7 @@ Feature: invitation acceptance ...@@ -22,6 +23,7 @@ Feature: invitation acceptance
Given I have been invited by a user Given I have been invited by a user
And I am on my acceptance form page And I am on my acceptance form page
And I fill in "Username" with "ohai" And I fill in "Username" with "ohai"
And I fill in "Email" with "sweet@woot.com"
And I fill in "user_password" with "secret" And I fill in "user_password" with "secret"
And I fill in "Password confirmation" with "secret" And I fill in "Password confirmation" with "secret"
And I press "Sign up" And I press "Sign up"
......
...@@ -121,11 +121,11 @@ describe Person do ...@@ -121,11 +121,11 @@ describe Person do
lambda {@deleter.destroy}.should change(Post, :count).by(-1) lambda {@deleter.destroy}.should change(Post, :count).by(-1)
end end
it "does not delete a person's comments on person deletion" do it "deletes a person's comments on person deletion" do
Factory.create(:comment, :person_id => @deleter.id, :diaspora_handle => @deleter.diaspora_handle, :text => "i love you", :post => @other_status) Factory.create(:comment, :person_id => @deleter.id, :diaspora_handle => @deleter.diaspora_handle, :text => "i love you", :post => @other_status)
Factory.create(:comment, :person_id => @person.id,:diaspora_handle => @person.diaspora_handle, :text => "you are creepy", :post => @other_status) Factory.create(:comment, :person_id => @person.id,:diaspora_handle => @person.diaspora_handle, :text => "you are creepy", :post => @other_status)
lambda {@deleter.destroy}.should_not change(Comment, :count) lambda {@deleter.destroy}.should change(Comment, :count).by(-1)
end end
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