diff options
author | Robin Houston <robin@lenny.robin> | 2011-09-08 00:39:13 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-09-08 00:39:13 +0100 |
commit | 55ab78f81b66edbf34c806df48677a1156c499d8 (patch) | |
tree | f1f180f90e7fdb8b745f0514a5b71273270e26fa /spec/models | |
parent | e00da51de4d0909a48b2569f1c66c0655f7bc63d (diff) |
Fix User.should_be_emailed?
The User.should_be_emailed? method needs to be public. It should also
be tested.
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/user_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index fc56d3365..751a61060 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -282,6 +282,18 @@ 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 |