build should be green now

This commit is contained in:
zhitomirskiyi 2011-01-28 21:21:14 -08:00
parent 7302a54710
commit 5940292840
2 changed files with 4 additions and 2 deletions

View file

@ -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
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"

View file

@ -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