skill-assessment-app/test/mailers/previews/candidate_mailer_preview.rb

16 lines
470 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-08-02 10:08:16 -05:00
# Preview all emails at http://localhost:3000/rails/mailers/candidate_mailer
class CandidateMailerPreview < ActionMailer::Preview
def welcome
CandidateMailer.welcome Candidate.find_by(test_hash: 'R67PmfDHGiw') # Martha
end
def reminder
CandidateMailer.reminder Candidate.find_by(test_hash: 'NmEjDkOEKY4') # Roy
end
def submitted
CandidateMailer.submitted Candidate.find_by(test_hash: 'OvP0ZqGKwJ0') # Dawn
end
end