Pulls manager name for recruiter email - completes #92

This commit is contained in:
Mark Moser
2017-02-27 09:11:07 -06:00
parent eb6a98443c
commit 7f8e74c6b3
4 changed files with 7 additions and 5 deletions

View File

@ -12,12 +12,14 @@ class RecruiterMailerTest < ActionMailer::TestCase
end
test "candidate_submitted" do
candidate = candidates :dawn
candidate = candidates :elsie
manager = users :manager
mail = RecruiterMailer.candidate_submitted candidate
assert_match candidate.name, mail.subject
assert_equal [candidate.recruiter.email], mail.to
assert_equal [ENV["default_mail_from"]], mail.from
assert_match candidate.name, mail.body.encoded
assert_match manager.name, mail.body.encoded
end
test "interview_requested" do