diff options
Diffstat (limited to 'spec')
-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 |