diff options
author | Robin Houston <robin@lenny.robin> | 2011-09-08 00:58:31 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-09-08 00:58:31 +0100 |
commit | 0b35486809a9a5ef8ba371549b05390682427392 (patch) | |
tree | 019d6dd61f30b6639eb0585b6db9a618f4e1854e /spec/models/user_spec.rb | |
parent | 6e0e5e5bed89ff2093e1cca3fa50310f678565fd (diff) | |
parent | e35a213a5550382c6aeeeadf29abdd178c87ea32 (diff) |
Merge branch 'wdtk' into develop
Conflicts:
config/general.yml-example
spec/models/track_mailer_spec.rb
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 |