diff options
author | 2010-08-13 10:56:37 +0200 | |
---|---|---|
committer | 2010-08-14 13:15:32 +0200 | |
commit | b33bde5fb1c6982943f166f6f9d0788432c11e7d (patch) | |
tree | 385189bcece0ff702e669a468515b818bd86ae79 | |
parent | Improve coverage of QuestionContentText model (diff) | |
download | recruiting-webapp-b33bde5fb1c6982943f166f6f9d0788432c11e7d.tar.gz recruiting-webapp-b33bde5fb1c6982943f166f6f9d0788432c11e7d.tar.bz2 recruiting-webapp-b33bde5fb1c6982943f166f6f9d0788432c11e7d.zip |
Improve coverage of UserMailer model
-rw-r--r-- | spec/models/user_mailer_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/user_mailer_spec.rb b/spec/models/user_mailer_spec.rb index 4e7c613..9c205cd 100644 --- a/spec/models/user_mailer_spec.rb +++ b/spec/models/user_mailer_spec.rb @@ -66,4 +66,10 @@ describe UserMailer do # don't test rest of the message notification.should have_text(/If you are answering question check if your message has proper subject./) end + + it "should pass received emails to EmailAnswer#answer_from_email" do + mail = TMail::Mail.new + EmailAnswer.should_receive(:answer_from_email) + UserMailer.receive(mail.to_s) + end end |