From 5940292840b8841181f767c276213a41ca9f6f8f Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Fri, 28 Jan 2011 21:21:14 -0800 Subject: [PATCH] build should be green now --- features/accepts_invitation.feature | 2 ++ spec/models/person_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/features/accepts_invitation.feature b/features/accepts_invitation.feature index 7d019b613..8810eea28 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 f0090a025..2756cd618 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