-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from guidance-guarantee-programme/variant-50_54
50-54 Appointment Types
- Loading branch information
Showing
12 changed files
with
185 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Feature: Summary document for under 55s | ||
As Pension Wise | ||
We want customers aged 50-54 to have a summary document relevant to their age bracket | ||
So that customers are reminded of what was discussed, including next steps that they may wish to take | ||
|
||
Scenario: Customers aged 50-54 are given the appropriate summary document | ||
Given a customer has had a Pension Wise appointment | ||
And the customer is given a 50-54 appointment type | ||
When we generate a summary document | ||
Then the summary document should have the 50-54 content | ||
|
||
Scenario: The 50-54 summary document warns customers that options could change in the future | ||
Given a customer has had a Pension Wise appointment | ||
And the customer is given a 50-54 appointment type | ||
When we generate a summary document | ||
Then the summary document should include a warning that options may have changed by the time the customer retires | ||
|
||
Scenario: The 50-54 summary document lets customers know when most people can take their pension | ||
Given a customer has had a Pension Wise appointment | ||
And the customer is given a 50-54 appointment type | ||
When we generate a summary document | ||
Then the summary document should include guidance about what age most people can take their pension | ||
|
||
Scenario: The 50-54 summary document warns customers about potential charges associated with leaving their pot untouched | ||
Given a customer has had a Pension Wise appointment | ||
And the customer is given a 50-54 appointment type | ||
When we generate a summary document | ||
Then the summary document should include a warning that they could be charged if they leave their pot untouched beyond their selected retirement age |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Given(/^the customer is given a 50-54 appointment type$/) do | ||
@output_document = fixture(:output_document, appointment_type: '50_54') | ||
end | ||
|
||
Then(/^the summary document should have the 50-54 content$/) do | ||
expect(@rendered_template).to have_keyword('appointment-50-54') | ||
end | ||
|
||
Then(/^the summary document should include (?:a warning|guidance about) (.*?)$/) do |guidance| | ||
section = case guidance | ||
when 'that options may have changed by the time the customer retires' then | ||
'options may have changed warning' | ||
when 'what age most people can take their pension' then | ||
'guidance about when you can take your pension' | ||
when 'that they could be charged if they leave their pot untouched beyond their selected retirement age' then | ||
'warning about leaving pot beyond selected retirement age' | ||
end | ||
|
||
expect(@rendered_template).to include_output_document_section(section) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters