From 28317f4f606e28063654a046ef6df2d7bc364c72 Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Wed, 9 Oct 2024 10:45:06 +0100 Subject: [PATCH 1/2] back office: add missing FE employment answer --- .../admin_tasks_presenter.rb | 4 +++- .../admin_tasks_presenter_spec.rb | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 spec/models/policies/further_education_payments/admin_tasks_presenter_spec.rb diff --git a/app/models/policies/further_education_payments/admin_tasks_presenter.rb b/app/models/policies/further_education_payments/admin_tasks_presenter.rb index 9294ddfd9b..a6101ff37b 100644 --- a/app/models/policies/further_education_payments/admin_tasks_presenter.rb +++ b/app/models/policies/further_education_payments/admin_tasks_presenter.rb @@ -27,7 +27,9 @@ def qualifications end def employment - [] + [ + ["Current provider", display_school(claim.eligibility.current_school)] + ] end def identity_confirmation diff --git a/spec/models/policies/further_education_payments/admin_tasks_presenter_spec.rb b/spec/models/policies/further_education_payments/admin_tasks_presenter_spec.rb new file mode 100644 index 0000000000..b0b1f3b88e --- /dev/null +++ b/spec/models/policies/further_education_payments/admin_tasks_presenter_spec.rb @@ -0,0 +1,15 @@ +require "rails_helper" + +RSpec.describe Policies::FurtherEducationPayments::AdminTasksPresenter do + describe "#employment" do + let(:claim) { create(:claim, :submitted) } + + subject { described_class.new(claim) } + + it "displays answer with link" do + expect(subject.employment[0][0]).to eql("Current provider") + expect(subject.employment[0][1]).to include("href") + expect(subject.employment[0][1]).to include(claim.school.dfe_number) + end + end +end From c58594c804e45cc31bec68a0e16e3c7d0ce3146e Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Wed, 9 Oct 2024 10:45:54 +0100 Subject: [PATCH 2/2] add missing back office translation --- config/locales/en.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index b9c21703e3..95d037dd77 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -936,6 +936,8 @@ en: claimant_answers: true: "Yes" false: "No" + employment: + title: Does the claimant’s place of work match the above information on their claim? forms: ineligible: courses: