From 0d01fc74d0da5d3a09e6fe1fe207ac39d511b8af Mon Sep 17 00:00:00 2001 From: James Mead Date: Wed, 18 Nov 2015 23:35:22 +0000 Subject: [PATCH 1/4] Use ERB templates for Qs in landlord-immigration-check I ran the following command: $ rails r script/convert-question-i18-yaml-to-erb-templates.rb lib/smart_answer_flows/landlord-immigration-check Writing template: has_asylum_card.govspeak.erb Writing template: has_documents.govspeak.erb Writing template: has_other_documents.govspeak.erb Writing template: immigration_application.govspeak.erb Writing template: property.govspeak.erb Writing template: property_type.govspeak.erb Writing template: has_certificate.govspeak.erb Writing template: main_home.govspeak.erb Writing template: has_residence_card_or_eu_eea_swiss_family_member.govspeak.erb Writing template: tenant_country.govspeak.erb Writing template: tenant_over_18.govspeak.erb Writing template: time_limited_to_remain.govspeak.erb Writing template: right_to_abode.govspeak.erb Writing template: has_uk_passport.govspeak.erb Deleting i18n YAML: landlord-immigration-check.yml Now insert `use_erb_templates_for_questions` at top of flow: landlord-immigration-check.rb --- .../questions/has_asylum_card.govspeak.erb | 8 ++ .../questions/has_certificate.govspeak.erb | 8 ++ .../questions/has_documents.govspeak.erb | 17 +++ .../has_other_documents.govspeak.erb | 22 +++ ...or_eu_eea_swiss_family_member.govspeak.erb | 12 ++ .../questions/has_uk_passport.govspeak.erb | 12 ++ .../immigration_application.govspeak.erb | 12 ++ .../questions/main_home.govspeak.erb | 20 +++ .../questions/property.govspeak.erb | 10 ++ .../questions/property_type.govspeak.erb | 14 ++ .../questions/right_to_abode.govspeak.erb | 8 ++ .../questions/tenant_country.govspeak.erb | 9 ++ .../questions/tenant_over_18.govspeak.erb | 8 ++ .../time_limited_to_remain.govspeak.erb | 14 ++ .../locales/en/landlord-immigration-check.yml | 126 ------------------ 15 files changed, 174 insertions(+), 126 deletions(-) create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/has_asylum_card.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/has_certificate.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/has_documents.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/has_other_documents.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/has_residence_card_or_eu_eea_swiss_family_member.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/has_uk_passport.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/immigration_application.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/main_home.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/property.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/property_type.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/right_to_abode.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/tenant_country.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/tenant_over_18.govspeak.erb create mode 100644 lib/smart_answer_flows/landlord-immigration-check/questions/time_limited_to_remain.govspeak.erb delete mode 100644 lib/smart_answer_flows/locales/en/landlord-immigration-check.yml diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/has_asylum_card.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/has_asylum_card.govspeak.erb new file mode 100644 index 00000000000..50868304290 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/has_asylum_card.govspeak.erb @@ -0,0 +1,8 @@ +<% content_for :title do %> + Does the person have an application for a Registration Card issued by the Home Office showing that they can stay in the UK? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/has_certificate.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/has_certificate.govspeak.erb new file mode 100644 index 00000000000..4cc840baba1 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/has_certificate.govspeak.erb @@ -0,0 +1,8 @@ +<% content_for :title do %> + Does the person have a Certificate of Registration or Naturalisation as a British citizen? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/has_documents.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/has_documents.govspeak.erb new file mode 100644 index 00000000000..331db4dc849 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/has_documents.govspeak.erb @@ -0,0 +1,17 @@ +<% content_for :title do %> + Does the person have any of the following: +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> + +<% content_for :body do %> + - a Registration Certificate or Document Certifying Permanent Residence issued by the Home Office to a national of the EU, EEA or Switzerland + - a valid Biometric Residence Permit issued by the Home Office endorsed to show they’re allowed to stay indefinitely in the UK + - a Permanent Residence Card, indefinite leave to remain, indefinite leave to enter or no time limit card issued by the Home Office + - a valid passport showing that the person is exempt from immigration control, can stay indefinitely in the UK, has the right of abode in the UK or has no time limit on their stay in the UK + - a current Immigration Status Document showing that the person has indefinite leave to stay in the UK or has no time limit to their stay + - other documents exempting the person from immigration control (eg diplomatic passports, NATO ID card) +<% end %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/has_other_documents.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/has_other_documents.govspeak.erb new file mode 100644 index 00000000000..4f5da92fca2 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/has_other_documents.govspeak.erb @@ -0,0 +1,22 @@ +<% content_for :title do %> + Does the person have 2 of the following: +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> + +<% content_for :body do %> + - a full birth or adoption certificate (that shows details of at least one of the birth + or adoptive parents) from the UK, the Channel Islands, the Isle of Man or Ireland + - an official letter or document (dated within the last 3 months) from a government agency or department (with their name and work address), an employer (with their name and company address) or UK passport holder (with their name, address and passport number) that confirms the person’s name and that they’re an employee + - a letter from a UK police force issued within the last 3 months confirming the person is a victim of crime and their documents have been stolen + - evidence that the person is currently serving in the UK armed forces or has previously served + - HM prison discharge papers or probation service letter (or the same from the Scottish or Northern Ireland Prison Service) + - a letter from a UK further or higher education institution confirming the person has been accepted for studies + - a current UK driving licence (either full or provisional) + - a current UK firearms or shot gun certificate + - a Disclosure or Barring Service certificate issued in the last 6 months + - benefits paperwork from HMRC, a local authority, the Department for Work and Pensions (DWP) or Jobcentre Plus within the last 12 months +<% end %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/has_residence_card_or_eu_eea_swiss_family_member.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/has_residence_card_or_eu_eea_swiss_family_member.govspeak.erb new file mode 100644 index 00000000000..49f7b4291ca --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/has_residence_card_or_eu_eea_swiss_family_member.govspeak.erb @@ -0,0 +1,12 @@ +<% content_for :title do %> + Does the person have a current Residence Card that is issued by the Home Office to a non-EEA national who is the family member of an EU, EEA or Swiss national? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> + +<% content_for :body do %> + This includes a current Accession Card or Derivative Card. +<% end %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/has_uk_passport.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/has_uk_passport.govspeak.erb new file mode 100644 index 00000000000..a75706b62f9 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/has_uk_passport.govspeak.erb @@ -0,0 +1,12 @@ +<% content_for :title do %> + Does the person have a current or expired UK or Republic of Ireland passport or are they a named person in their parent’s UK or Republic of Ireland passport? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> + +<% content_for :body do %> + A named person is someone who appears on someone else’s passport. +<% end %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/immigration_application.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/immigration_application.govspeak.erb new file mode 100644 index 00000000000..399d3c67211 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/immigration_application.govspeak.erb @@ -0,0 +1,12 @@ +<% content_for :title do %> + Does the person have an outstanding immigration application, immigration appeal or administrative review? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> + +<% content_for :body do %> + They must also provide their Home Office reference number. +<% end %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/main_home.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/main_home.govspeak.erb new file mode 100644 index 00000000000..4cbb72602f8 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/main_home.govspeak.erb @@ -0,0 +1,20 @@ +<% content_for :title do %> + Is the person renting the property as their main and only home? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> + +<% content_for :body do %> + This includes: + + - tenancy agreement + - a lease + - a licence + - sub-lease or sub-tenancy + - lodgers + - paying house guests + - a family member living with the tenant as their main or only home +<% end %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/property.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/property.govspeak.erb new file mode 100644 index 00000000000..f89c1f09b5f --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/property.govspeak.erb @@ -0,0 +1,10 @@ +<% content_for :title do %> + Enter the postcode of the property you want to let: +<% end %> + +<% content_for :error_postcode_invalid do %> + Invalid postcode +<% end %> +<% content_for :error_postcode_incomplete do %> + Please enter a full postcode +<% end %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/property_type.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/property_type.govspeak.erb new file mode 100644 index 00000000000..7b1287c219b --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/property_type.govspeak.erb @@ -0,0 +1,14 @@ +<% content_for :title do %> + What kind of property are you letting? +<% end %> + +<% options( + "holiday_accommodation": "holiday accommodation", + "social_housing": "social housing", + "care_home": "a care home or hospice", + "hostel_or_refuge": "a hostel or refuge", + "mobile_home": "a mobile home", + "employee_accommodation": "accommodation to an employee or as part of training, eg tied accommodation", + "student_accommodation": "student accommodation", + "7_year_lease_property": "a residential property with a lease for 7 years or more" +) %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/right_to_abode.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/right_to_abode.govspeak.erb new file mode 100644 index 00000000000..e094de19370 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/right_to_abode.govspeak.erb @@ -0,0 +1,8 @@ +<% content_for :title do %> + Does the person have a certificate of right of abode in their passport? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/tenant_country.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/tenant_country.govspeak.erb new file mode 100644 index 00000000000..5d36f14f188 --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/tenant_country.govspeak.erb @@ -0,0 +1,9 @@ +<% content_for :title do %> + Is the person: +<% end %> + +<% options( + "eu_eea_switzerland": "from the EU, EEA or Switzerland", + "non_eea_but_with_eu_eea_switzerland_family_member": "a non-EEA family member of someone from the EU, EEA or Switzerland", + "somewhere_else": "from somewhere else" +) %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/tenant_over_18.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/tenant_over_18.govspeak.erb new file mode 100644 index 00000000000..c001b22280f --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/tenant_over_18.govspeak.erb @@ -0,0 +1,8 @@ +<% content_for :title do %> + Is the person at least 18 years of age? +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> diff --git a/lib/smart_answer_flows/landlord-immigration-check/questions/time_limited_to_remain.govspeak.erb b/lib/smart_answer_flows/landlord-immigration-check/questions/time_limited_to_remain.govspeak.erb new file mode 100644 index 00000000000..bd483d5730c --- /dev/null +++ b/lib/smart_answer_flows/landlord-immigration-check/questions/time_limited_to_remain.govspeak.erb @@ -0,0 +1,14 @@ +<% content_for :title do %> + Does the person have any of the following: +<% end %> + +<% options( + "yes": "Yes", + "no": "No" +) %> + +<% content_for :body do %> + - a current passport endorsed to show that the person can stay in the UK + - a current Biometric Residence Permit issued by the Home Office to the person showing that they can currently stay in the UK + - an Immigration Status Document issued by the Home Office with an endorsement showing the person can currently stay in the UK +<% end %> diff --git a/lib/smart_answer_flows/locales/en/landlord-immigration-check.yml b/lib/smart_answer_flows/locales/en/landlord-immigration-check.yml deleted file mode 100644 index 79120430d24..00000000000 --- a/lib/smart_answer_flows/locales/en/landlord-immigration-check.yml +++ /dev/null @@ -1,126 +0,0 @@ ---- -en-GB: - flow: - landlord-immigration-check: - has_asylum_card?: - title: Does the person have an application for a Registration Card issued - by the Home Office showing that they can stay in the UK? - options: - 'yes': 'Yes' - 'no': 'No' - has_documents?: - title: 'Does the person have any of the following:' - body: |- - - a Registration Certificate or Document Certifying Permanent Residence issued by the Home Office to a national of the EU, EEA or Switzerland - - a valid Biometric Residence Permit issued by the Home Office endorsed to show they’re allowed to stay indefinitely in the UK - - a Permanent Residence Card, indefinite leave to remain, indefinite leave to enter or no time limit card issued by the Home Office - - a valid passport showing that the person is exempt from immigration control, can stay indefinitely in the UK, has the right of abode in the UK or has no time limit on their stay in the UK - - a current Immigration Status Document showing that the person has indefinite leave to stay in the UK or has no time limit to their stay - - other documents exempting the person from immigration control (eg diplomatic passports, NATO ID card) - options: - 'yes': 'Yes' - 'no': 'No' - has_other_documents?: - title: 'Does the person have 2 of the following:' - body: |- - - a full birth or adoption certificate (that shows details of at least one of the birth - or adoptive parents) from the UK, the Channel Islands, the Isle of Man or Ireland - - an official letter or document (dated within the last 3 months) from a government agency or department (with their name and work address), an employer (with their name and company address) or UK passport holder (with their name, address and passport number) that confirms the person’s name and that they’re an employee - - a letter from a UK police force issued within the last 3 months confirming the person is a victim of crime and their documents have been stolen - - evidence that the person is currently serving in the UK armed forces or has previously served - - HM prison discharge papers or probation service letter (or the same from the Scottish or Northern Ireland Prison Service) - - a letter from a UK further or higher education institution confirming the person has been accepted for studies - - a current UK driving licence (either full or provisional) - - a current UK firearms or shot gun certificate - - a Disclosure or Barring Service certificate issued in the last 6 months - - benefits paperwork from HMRC, a local authority, the Department for Work and Pensions (DWP) or Jobcentre Plus within the last 12 months - options: - 'yes': 'Yes' - 'no': 'No' - immigration_application?: - title: Does the person have an outstanding immigration application, immigration - appeal or administrative review? - body: They must also provide their Home Office reference number. - options: - 'yes': 'Yes' - 'no': 'No' - property?: - title: 'Enter the postcode of the property you want to let:' - error_postcode_invalid: 'Invalid postcode' - error_postcode_incomplete: 'Please enter a full postcode' - property_type?: - title: What kind of property are you letting? - options: - holiday_accommodation: holiday accommodation - social_housing: social housing - care_home: a care home or hospice - hostel_or_refuge: a hostel or refuge - mobile_home: a mobile home - employee_accommodation: accommodation to an employee or as part of training, - eg tied accommodation - student_accommodation: student accommodation - 7_year_lease_property: a residential property with a lease for 7 years or - more - has_certificate?: - title: Does the person have a Certificate of Registration or Naturalisation - as a British citizen? - options: - 'yes': 'Yes' - 'no': 'No' - main_home?: - title: Is the person renting the property as their main and only home? - body: |- - This includes: - - - tenancy agreement - - a lease - - a licence - - sub-lease or sub-tenancy - - lodgers - - paying house guests - - a family member living with the tenant as their main or only home - options: - 'yes': 'Yes' - 'no': 'No' - has_residence_card_or_eu_eea_swiss_family_member?: - title: Does the person have a current Residence Card that is issued by the - Home Office to a non-EEA national who is the family member of an EU, EEA - or Swiss national? - body: This includes a current Accession Card or Derivative Card. - options: - 'yes': 'Yes' - 'no': 'No' - tenant_country?: - title: 'Is the person:' - options: - eu_eea_switzerland: from the EU, EEA or Switzerland - non_eea_but_with_eu_eea_switzerland_family_member: a non-EEA family member - of someone from the EU, EEA or Switzerland - somewhere_else: from somewhere else - tenant_over_18?: - title: Is the person at least 18 years of age? - options: - 'yes': 'Yes' - 'no': 'No' - time_limited_to_remain?: - title: 'Does the person have any of the following:' - body: |- - - a current passport endorsed to show that the person can stay in the UK - - a current Biometric Residence Permit issued by the Home Office to the person showing that they can currently stay in the UK - - an Immigration Status Document issued by the Home Office with an endorsement showing the person can currently stay in the UK - options: - 'yes': 'Yes' - 'no': 'No' - right_to_abode?: - title: Does the person have a certificate of right of abode in their passport? - options: - 'yes': 'Yes' - 'no': 'No' - has_uk_passport?: - title: Does the person have a current or expired UK or Republic of Ireland - passport or are they a named person in their parent’s UK or Republic of - Ireland passport? - body: A named person is someone who appears on someone else’s passport. - options: - 'yes': 'Yes' - 'no': 'No' From 4e629a37438e22fa7a7a1fb5acd422ad5127dcc7 Mon Sep 17 00:00:00 2001 From: James Mead Date: Wed, 18 Nov 2015 23:36:21 +0000 Subject: [PATCH 2/4] Now insert `use_erb_templates_for_questions` at top of flow --- lib/smart_answer_flows/landlord-immigration-check.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/smart_answer_flows/landlord-immigration-check.rb b/lib/smart_answer_flows/landlord-immigration-check.rb index f8f785a61b1..7b53ce4e0ed 100644 --- a/lib/smart_answer_flows/landlord-immigration-check.rb +++ b/lib/smart_answer_flows/landlord-immigration-check.rb @@ -6,6 +6,8 @@ def define status :published satisfies_need "102373" + use_erb_templates_for_questions + postcode_question :property? do permitted_next_nodes = [ :main_home?, From dc5766987319ba34f57e6c30103224bfd8626847 Mon Sep 17 00:00:00 2001 From: James Mead Date: Wed, 18 Nov 2015 23:42:43 +0000 Subject: [PATCH 3/4] Update regression test artefacts The change to ERB templates has introduced a few extra newlines in the question page HTML, but none of them affect the content viewable by the user. I verified that the changes were all only blank lines using the following command: $ git diff --ignore-blank-lines --- test/artefacts/landlord-immigration-check/B1 1PW.html | 1 + test/artefacts/landlord-immigration-check/B1 1PW/no.html | 2 ++ test/artefacts/landlord-immigration-check/B1 1PW/yes.html | 2 ++ test/artefacts/landlord-immigration-check/B1 1PW/yes/yes.html | 1 + .../artefacts/landlord-immigration-check/B1 1PW/yes/yes/no.html | 2 ++ .../landlord-immigration-check/B1 1PW/yes/yes/no/no.html | 2 ++ .../landlord-immigration-check/B1 1PW/yes/yes/no/no/no.html | 2 ++ .../B1 1PW/yes/yes/no/no/no/eu_eea_switzerland.html | 1 + .../B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no.html | 1 + .../B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no.html | 1 + .../B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no.html | 1 + .../B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no.html | 2 ++ .../yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no/no.html | 1 + test/artefacts/landlord-immigration-check/y.html | 2 ++ 14 files changed, 21 insertions(+) diff --git a/test/artefacts/landlord-immigration-check/B1 1PW.html b/test/artefacts/landlord-immigration-check/B1 1PW.html index 505bce5ee95..7e94a6f394c 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW.html @@ -68,6 +68,7 @@

+ diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/no.html index 2d5c2ccfc54..b832616985a 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/no.html @@ -38,6 +38,7 @@

+
    @@ -93,6 +94,7 @@

    +

diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes.html index 829619a07e7..cf6c35a6627 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes.html @@ -38,6 +38,7 @@

+
    @@ -57,6 +58,7 @@

    +

diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes.html index 686dbee2b79..1f95417acdf 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes.html @@ -58,6 +58,7 @@

+ diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no.html index efc91f34ee9..204447486e6 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no.html @@ -38,6 +38,7 @@

+
    @@ -57,6 +58,7 @@

    +

diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no.html index b1c65773065..a90d7cb4c96 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no.html @@ -38,6 +38,7 @@

+
    @@ -57,6 +58,7 @@

    +

diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no.html index 16f39756e2a..a7bcb3f6fb5 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no.html @@ -38,6 +38,7 @@

+
    @@ -63,6 +64,7 @@

    +

diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland.html index c9bd2c6a206..ecb0ec5e638 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland.html @@ -65,6 +65,7 @@

+ diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no.html index 7b418740220..1c59288cfd8 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no.html @@ -70,6 +70,7 @@

+ diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no.html index 9a5cbf05afd..a10d05de55b 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no.html @@ -62,6 +62,7 @@

+ diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no.html index 355a2c85a3b..31128b558f4 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no.html @@ -58,6 +58,7 @@

+ diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no.html index 92c93c5e035..f49aeb587ba 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no.html @@ -38,6 +38,7 @@

+
    @@ -57,6 +58,7 @@

    +

diff --git a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no/no.html b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no/no.html index 54b369da6d3..9220dde8fa0 100644 --- a/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no/no.html +++ b/test/artefacts/landlord-immigration-check/B1 1PW/yes/yes/no/no/no/eu_eea_switzerland/no/no/no/no/no.html @@ -58,6 +58,7 @@

+ diff --git a/test/artefacts/landlord-immigration-check/y.html b/test/artefacts/landlord-immigration-check/y.html index 64e5619aaa9..aa142c22457 100644 --- a/test/artefacts/landlord-immigration-check/y.html +++ b/test/artefacts/landlord-immigration-check/y.html @@ -38,6 +38,7 @@

+
From 8d18e4b9a7f5675bca3489d568d2e26a073ebc53 Mon Sep 17 00:00:00 2001 From: James Mead Date: Wed, 18 Nov 2015 23:43:13 +0000 Subject: [PATCH 4/4] Update regression test checksums Re-generating the checksums has removed the i18n YAML file and added the new question templates as I expected. --- test/data/landlord-immigration-check-files.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/test/data/landlord-immigration-check-files.yml b/test/data/landlord-immigration-check-files.yml index abaede37176..d6db5709cf2 100644 --- a/test/data/landlord-immigration-check-files.yml +++ b/test/data/landlord-immigration-check-files.yml @@ -1,6 +1,5 @@ --- -lib/smart_answer_flows/landlord-immigration-check.rb: 87dac21e11e809d059e577cd987c8fda -lib/smart_answer_flows/locales/en/landlord-immigration-check.yml: 590064bf90819fb8cc0484d7c46d0261 +lib/smart_answer_flows/landlord-immigration-check.rb: 5127978675df03eb975beba049aff565 test/data/landlord-immigration-check-questions-and-responses.yml: 6d59147e57d28d1c398bc7e178d1f2ac test/data/landlord-immigration-check-responses-and-expected-results.yml: 329e7752e670f0ee92bc1c671ba478a7 lib/smart_answer_flows/landlord-immigration-check/landlord_immigration_check.govspeak.erb: eaf7437d3d26c946b1e7e7b283d1cf0e @@ -18,4 +17,18 @@ lib/smart_answer_flows/landlord-immigration-check/outcomes/outcome_check_not_nee lib/smart_answer_flows/landlord-immigration-check/outcomes/outcome_check_not_needed_when_hostel_refuge.govspeak.erb: 6c068528a1a1c08d957d6446d03c6c7e lib/smart_answer_flows/landlord-immigration-check/outcomes/outcome_check_not_needed_when_mobile_home.govspeak.erb: 76921608102f56db3c0a2e7de007a989 lib/smart_answer_flows/landlord-immigration-check/outcomes/outcome_check_not_needed_when_under_18.govspeak.erb: 31a94b4f17d48afac83ba42eab361cab +lib/smart_answer_flows/landlord-immigration-check/questions/has_asylum_card.govspeak.erb: da15f9bb156eed4ff866cfba4072620b +lib/smart_answer_flows/landlord-immigration-check/questions/has_certificate.govspeak.erb: c670d7bc733232a394b4caa93a6aefb9 +lib/smart_answer_flows/landlord-immigration-check/questions/has_documents.govspeak.erb: ea1250a0013c28b4a7cbcb0337219e16 +lib/smart_answer_flows/landlord-immigration-check/questions/has_other_documents.govspeak.erb: 2157c66688127c990cc2964dd0e09f86 +lib/smart_answer_flows/landlord-immigration-check/questions/has_residence_card_or_eu_eea_swiss_family_member.govspeak.erb: 566627594105a24069451ab40f540846 +lib/smart_answer_flows/landlord-immigration-check/questions/has_uk_passport.govspeak.erb: 294e10196ecf02efcc75eea4fd8c966c +lib/smart_answer_flows/landlord-immigration-check/questions/immigration_application.govspeak.erb: c03287c66e6560432c56f1dea2e3dcba +lib/smart_answer_flows/landlord-immigration-check/questions/main_home.govspeak.erb: a07e7746a4dc03a24fda4bbe09a4bbc6 +lib/smart_answer_flows/landlord-immigration-check/questions/property.govspeak.erb: 2423dcd0c89463fb2b0038e44cf61205 +lib/smart_answer_flows/landlord-immigration-check/questions/property_type.govspeak.erb: 3710f90d225ea768560ea884bbd64a5b +lib/smart_answer_flows/landlord-immigration-check/questions/right_to_abode.govspeak.erb: d6c17a9e66d43ea52439973177eccdb5 +lib/smart_answer_flows/landlord-immigration-check/questions/tenant_country.govspeak.erb: a28062a1e9cb019d012fb962524130ee +lib/smart_answer_flows/landlord-immigration-check/questions/tenant_over_18.govspeak.erb: c4a270709e77da5aff8c4e50aa56e905 +lib/smart_answer_flows/landlord-immigration-check/questions/time_limited_to_remain.govspeak.erb: 035351becd17423c4de8d75eda23cf32 lib/smart_answer/calculators/landlord_immigration_check_calculator.rb: ece61292e6e20bdfb86ef479108d019b