Skip to content

Commit

Permalink
[445] Use strings over translations in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avinhurry committed Jan 22, 2025
1 parent 8194f6a commit ce8ce00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/mailers/referee_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

it_behaves_like(
'a mail with subject and content',
I18n.t('referee_mailer.reference_request.subject', candidate_name: 'Elliot Alderson'),
'Teacher training reference needed for Elliot Alderson',
'heading' => 'Dear Jane',
'details' => 'Elliot Alderson has accepted an offer from University of Warwick for a place on a teacher training course',
'further guidance' => 'whether you have any concerns about them working with children',
Expand Down Expand Up @@ -94,7 +94,7 @@

it_behaves_like(
'a mail with subject and content',
I18n.t('referee_mailer.reference_request.subject', candidate_name: 'Elliot Alderson'),
'Teacher training reference needed for Elliot Alderson',
'heading' => 'Dear Jane',
'details' => 'Elliot Alderson has accepted an offer from University of Warwick for a place on a teacher training course',
'further guidance' => 'whether you have any concerns about them working with children',
Expand Down Expand Up @@ -125,7 +125,7 @@

it_behaves_like(
'a mail with subject and content',
I18n.t('reference_confirmation_email.subject', candidate_name: 'Elliot Alderson'),
'Teacher training reference submitted for Elliot Alderson',
'heading' => 'Dear Jane',
)
end
Expand All @@ -139,7 +139,7 @@

it_behaves_like(
'a mail with subject and content',
I18n.t('reference_cancelled_email.subject', candidate_name: 'Elliot Alderson'),
'Teacher training reference no longer needed for Elliot Alderson',
'heading' => 'Dear Jane',
)
end
Expand All @@ -157,7 +157,7 @@

it_behaves_like(
'a mail with subject and content',
I18n.t('referee_mailer.reference_request.subject', candidate_name: 'Elliot Alderson'),
'Teacher training reference needed for Elliot Alderson',
'heading' => 'Dear Jane',
'reference link' => '/reference?token=raw_token',
'details' => 'Elliot Alderson has accepted an offer from University of Warwick for a place on a teacher training course',
Expand Down

0 comments on commit ce8ce00

Please sign in to comment.