aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/models/email_answer_spec.rb (renamed from spec/models/email_answer.rb)3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/email_answer.rb b/spec/models/email_answer_spec.rb
index 60b2730..c066be8 100644
--- a/spec/models/email_answer.rb
+++ b/spec/models/email_answer_spec.rb
@@ -2,8 +2,9 @@ require 'spec_helper.rb'
describe EmailAnswer do
it "should send email notification when parses answer for unrecognized question from known user" do
recruit = Factory(:recruit)
+ question = Factory(:question)
mail = TMail::Mail.new
- mail.subject = "some subject"
+ mail.subject = "#{question.id + 1}-#{recruit.token}"
mail.from = recruit.email_address
UserMailer.should_receive(:deliver_unrecognized_email).with(recruit, mail)