diff --git a/app/helpers/claims/itt_subject_helper.rb b/app/helpers/claims/itt_subject_helper.rb index 2a6a4253e7..07ad7d2d31 100644 --- a/app/helpers/claims/itt_subject_helper.rb +++ b/app/helpers/claims/itt_subject_helper.rb @@ -1,7 +1,10 @@ module Claims module IttSubjectHelper def subjects_to_sentence_for_hint_text(answers) - all_ecp_subjects = [:chemistry, :foreign_languages, :mathematics, :physics] + all_ecp_subjects = Policies::EarlyCareerPayments.subject_symbols( + claim_year: answers.policy_year, + itt_year: answers.itt_academic_year + ) all_lup_subjects = Policies::LevellingUpPremiumPayments.fixed_subject_symbols hint_subject_symbols = Set[] diff --git a/spec/helpers/claims/itt_subject_helper_spec.rb b/spec/helpers/claims/itt_subject_helper_spec.rb index 77ac2364c0..3c1c4b4ff3 100644 --- a/spec/helpers/claims/itt_subject_helper_spec.rb +++ b/spec/helpers/claims/itt_subject_helper_spec.rb @@ -94,7 +94,8 @@ build( :additional_payments_answers, :lup_ineligible, - :ecp_eligible_later + :ecp_eligible_later, + itt_academic_year: AcademicYear.new(2020) ) end