Skip to content

Commit

Permalink
add new TSLR rejection reason
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Oct 18, 2024
1 parent ef18d66 commit 0b47d3e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/policies/student_loans.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module StudentLoans
:ineligible_school,
:ineligible_qualification,
:no_qts_or_qtls,
:no_repayments_to_slc,
:duplicate,
:no_response,
:other
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ en:
ineligible_school: Ineligible school
ineligible_qualification: Ineligible qualification
no_qts_or_qtls: No QTS or QTLS
no_repayments_to_slc: No repayments made to the Student Loans Company
duplicate: Duplicate
no_response: No response
other: Other
Expand Down
1 change: 1 addition & 0 deletions spec/mailers/claim_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class SomePolicy; end
reason_ineligible_school: "no",
reason_ineligible_qualification: "no",
reason_no_qts_or_qtls: "no",
reason_no_repayments_to_slc: "no",
reason_duplicate: "no",
reason_no_response: "no",
reason_other: "no"
Expand Down
16 changes: 15 additions & 1 deletion spec/models/decision_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@
:other
]
end
let(:expected_reasons_tslr) do
[
:ineligible_subject,
:ineligible_year,
:ineligible_school,
:ineligible_qualification,
:no_qts_or_qtls,
:no_repayments_to_slc,
:duplicate,
:no_response,
:other
]
end

context "when the claim policy is ECP" do
let(:policy) { Policies::EarlyCareerPayments }
Expand All @@ -141,7 +154,7 @@
context "when the claim policy is TSLR" do
let(:policy) { Policies::StudentLoans }

it { is_expected.to eq(expected_reasons_non_ecp) }
it { is_expected.to eq(expected_reasons_tslr) }
end
end

Expand Down Expand Up @@ -216,6 +229,7 @@
reason_ineligible_school: "0",
reason_ineligible_qualification: "0",
reason_no_qts_or_qtls: "1",
reason_no_repayments_to_slc: "0",
reason_duplicate: "0",
reason_no_response: "0",
reason_other: "0"
Expand Down

0 comments on commit 0b47d3e

Please sign in to comment.