diff --git a/features/accepts_invitation.feature b/features/accepts_invitation.feature index 7d019b6131365ca4047eaf974a51e89b0aea7652..8810eea280182dfbf71cf13138fcae0b0a399405 100644 --- a/features/accepts_invitation.feature +++ b/features/accepts_invitation.feature @@ -4,6 +4,7 @@ Feature: invitation acceptance Given I have been invited by an admin And I am on my acceptance form page 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 "Password confirmation" with "secret" And I press "Sign up" @@ -22,6 +23,7 @@ Feature: invitation acceptance Given I have been invited by a user And I am on my acceptance form page 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 "Password confirmation" with "secret" And I press "Sign up" diff --git a/spec/models/person_spec.rb b/spec/models/person_spec.rb index f0090a025533e3459e45c05153affbdc827aae40..2756cd61811a000d0f6fa3352158ede672b9baa1 100644 --- a/spec/models/person_spec.rb +++ b/spec/models/person_spec.rb @@ -121,11 +121,11 @@ describe Person do lambda {@deleter.destroy}.should change(Post, :count).by(-1) 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 => @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