Skip to content

Commit fe54046

Browse files
authored
Merge pull request #3609 from nhsuk/render-team-email-address
Ensure team email address is rendered on deadline passed page
2 parents d7b8aab + dc6b0be commit fe54046

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

app/views/parent_interface/consent_forms/deadline_passed.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
<h2 class="nhsuk-heading-m">You can still book a clinic appointment</h2>
66

77
<p class="govuk-body">
8-
Contact <% govuk_link_to @team.email, "mailto:#{@team.email}" %> to book a clinic appointment.
8+
Contact <%= link_to @team.email, "mailto:#{@team.email}" %> to book a clinic appointment.
99
</p>

spec/features/parental_consent_closed_spec.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def given_an_hpv_programme_is_underway_with_a_backfilled_session
2020
@programme = create(:programme, :hpv)
2121
@organisation =
2222
create(:organisation, :with_one_nurse, programmes: [@programme])
23-
location =
24-
create(:school, name: "Pilot School", organisation: @organisation)
23+
@team = create(:team, organisation: @organisation)
24+
location = create(:school, name: "Pilot School", team: @team)
2525
@session =
2626
create(
2727
:session,
@@ -36,7 +36,8 @@ def given_an_hpv_programme_is_starting_soon
3636
@programme = create(:programme, :hpv)
3737
@organisation =
3838
create(:organisation, :with_one_nurse, programmes: [@programme])
39-
location = create(:school, name: "Pilot School", team: create(:team))
39+
@team = create(:team, organisation: @organisation)
40+
location = create(:school, name: "Pilot School", team: @team)
4041
@session =
4142
create(
4243
:session,
@@ -112,5 +113,8 @@ def when_i_wait_a_long_time_before_submitting
112113

113114
def then_i_see_that_consent_is_closed
114115
expect(page).to have_content("The deadline for responding has passed")
116+
expect(page).to have_content(
117+
"Contact #{@team.email} to book a clinic appointment."
118+
)
115119
end
116120
end

0 commit comments

Comments
 (0)