From 6ef65a282519210e1c5ebb761ba8e5814634a64b Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Wed, 16 Nov 2016 18:47:15 -0600 Subject: [PATCH] added test hash to reviewer email subject line --- app/mailers/reviewer_mailer.rb | 2 +- test/mailers/reviewer_mailer_test.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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