Skip to content

Commit

Permalink
Merge pull request #851 from DFE-Digital/344-review-and-add-fields-to…
Browse files Browse the repository at this point in the history
…-ctr-for-regulatory-organisations-gtcni-ewc-wales

344 review and add fields to ctr for regulatory organisations gtcni ewc wales
  • Loading branch information
richardpattinson authored Oct 1, 2024
2 parents 056f6e2 + 7a83496 commit 61c742d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ def itt_rows
}
},
{ key: { text: "Age range" }, value: { text: details.age_range&.description } },
{
key: {
text: "Course start date"
},
value: {
text: details.start_date&.to_date&.to_fs(:long_uk)
}
},
{
key: {
text: "Course end date"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@
expect(rows[4].text).to include(qualification.details.age_range&.description)
end

it "renders the qualification status" do
expect(rows[5].text).to include(Date.parse(qualification.details.start_date).to_fs(:long_uk))
end

it "renders the qualification course end date" do
expect(rows[5].text).to include(Date.parse(qualification.details.end_date).to_fs(:long_uk))
expect(rows[6].text).to include(Date.parse(qualification.details.end_date).to_fs(:long_uk))
end

it "renders the qualification status" do
expect(rows[6].text).to include(qualification.details.result)
expect(rows[7].text).to include(qualification.details.result)
end

it "omits rows with no value" do
Expand Down

0 comments on commit 61c742d

Please sign in to comment.