diff --git a/app/mailers/reviewer_mailer.rb b/app/mailers/reviewer_mailer.rb index 0f06024..9d57d89 100644 --- a/app/mailers/reviewer_mailer.rb +++ b/app/mailers/reviewer_mailer.rb @@ -4,6 +4,6 @@ class ReviewerMailer < ApplicationMailer @candidate = candidate recipients = candidate.quiz.reviewers.map(&:email) - mail to: recipients, subject: "Skills Assessment Results" + mail to: recipients, subject: "Skills Assessment Results - #{@candidate.test_hash}" end end diff --git a/test/mailers/reviewer_mailer_test.rb b/test/mailers/reviewer_mailer_test.rb index 6241752..35673eb 100644 --- a/test/mailers/reviewer_mailer_test.rb +++ b/test/mailers/reviewer_mailer_test.rb @@ -6,6 +6,7 @@ class ReviewerMailerTest < ActionMailer::TestCase candidate = candidates :dawn mail = ReviewerMailer.candidate_submission candidate assert_match "Results", mail.subject + assert_match candidate.test_hash, mail.subject assert_equal candidate.quiz.reviewers.map(&:email), mail.to assert_equal [ENV["default_mail_from"]], mail.from assert_match candidate.test_hash, mail.body.encoded