Skip to content

Commit

Permalink
Merge pull request #3289 from DFE-Digital/fe-employment-answer
Browse files Browse the repository at this point in the history
[LUPEYALPHA-1147] FE employment answer
  • Loading branch information
asmega authored Oct 10, 2024
2 parents 8c441a6 + c58594c commit 8ebe7d9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def qualifications
end

def employment
[]
[
["Current provider", display_school(claim.eligibility.current_school)]
]
end

def identity_confirmation
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8ebe7d9

Please sign in to comment.