diff options
author | David Cabo <david@calibea.com> | 2011-10-13 00:29:51 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-10-13 00:29:51 +0200 |
commit | c8983b923e4dc7db9ba22156daaddd94d2b5ed4d (patch) | |
tree | 7741c3655fe5e3cbc90dd20a4626ac7acc1bf6b0 /spec/models/user_spec.rb | |
parent | a29b3aaf0ae77af49d38813b62dddcb6889c1ebe (diff) | |
parent | e13127a8ebc8bf8379d92f778af5a2bb6931d80c (diff) |
Merge branch 'release/0.4'0.4
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r-- | spec/models/user_spec.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index ee6916ffc..751a61060 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -282,3 +282,26 @@ describe User, "when setting a profile photo" do # end end +describe User, "when unconfirmed" do + fixtures :users + + before do + @user = users(:unconfirmed_user) + end + + it "should not be emailed" do + @user.should_be_emailed?.should be_false + end +end + +describe User, "when emails have bounced" do + fixtures :users + + it "should record bounces" do + User.record_bounce_for_email("bob@localhost", "The reason we think the email bounced (e.g. a bounce message)") + + user = User.find_user_by_email("bob@localhost") + user.email_bounced_at.should_not be_nil + user.email_bounce_message.should == "The reason we think the email bounced (e.g. a bounce message)" + end +end |