Browse Source

CLDC-3093: Update content inconsistencies and typos (#2846)

* Update copy

* Update sale_information.en.yml

* Update sale_information.en.yml

* Fixes

* Update test

* Update test

* Update test
pull/2852/head^2
Manny Dinssa 2 months ago committed by GitHub
parent
commit
1b2100bc8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/models/form/sales/questions/equity.rb
  2. 2
      app/models/form/sales/questions/value.rb
  3. 2
      config/locales/forms/2023/lettings/household_characteristics.en.yml
  4. 2
      config/locales/forms/2023/lettings/income_and_benefits.en.yml
  5. 40
      config/locales/forms/2023/sales/household_characteristics.en.yml
  6. 2
      config/locales/forms/2023/sales/income_benefits_and_savings.en.yml
  7. 10
      config/locales/forms/2023/sales/sale_information.en.yml
  8. 2
      config/locales/forms/2024/lettings/household_characteristics.en.yml
  9. 2
      config/locales/forms/2024/lettings/income_and_benefits.en.yml
  10. 40
      config/locales/forms/2024/sales/household_characteristics.en.yml
  11. 2
      config/locales/forms/2024/sales/income_benefits_and_savings.en.yml
  12. 10
      config/locales/forms/2024/sales/sale_information.en.yml
  13. 2
      config/locales/forms/2025/lettings/household_characteristics.en.yml
  14. 2
      config/locales/forms/2025/lettings/income_and_benefits.en.yml
  15. 20
      config/locales/forms/2025/sales/household_characteristics.en.yml
  16. 2
      config/locales/forms/2025/sales/income_benefits_and_savings.en.yml
  17. 8
      config/locales/forms/2025/sales/sale_information.en.yml
  18. 2
      config/locales/forms/2025/sales/setup.en.yml
  19. 4
      spec/models/form/sales/pages/equity_spec.rb
  20. 4
      spec/models/form/sales/pages/value_shared_ownership_spec.rb
  21. 4
      spec/models/form/sales/questions/equity_spec.rb

2
app/models/form/sales/questions/equity.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::Equity < ::Form::Question
def initialize(id, hsh, page)
super
@id = "equity"
@copy_key = "sales.sale_information.equity.#{page.id}"
@copy_key = form.start_year_2025_or_later? ? "sales.sale_information.equity.#{page.id}" : "sales.sale_information.equity"
@type = "numeric"
@min = 0
@max = 100

2
app/models/form/sales/questions/value.rb

@ -2,7 +2,7 @@ class Form::Sales::Questions::Value < ::Form::Question
def initialize(id, hsh, page)
super
@id = "value"
@copy_key = "sales.sale_information.value.#{page.id}"
@copy_key = form.start_year_2025_or_later? ? "sales.sale_information.value.#{page.id}" : "sales.sale_information.value"
@type = "numeric"
@min = 0
@step = 1

2
config/locales/forms/2023/lettings/household_characteristics.en.yml

@ -19,7 +19,7 @@ en:
page_header: ""
age1_known:
check_answer_label: ""
hint_text: "The lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
hint_text: "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
question_text: "Do you know the lead tenant’s age?"
age1:
check_answer_label: "Lead tenant’s age"

2
config/locales/forms/2023/lettings/income_and_benefits.en.yml

@ -103,6 +103,6 @@ en:
hint_text: "You only need to give an approximate figure."
question_text: "Can you estimate the outstanding amount?"
tshortfall:
check_answer_label: "Estimated outstanding amountt"
check_answer_label: "Estimated outstanding amount"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "Estimated outstanding amount"

40
config/locales/forms/2023/sales/household_characteristics.en.yml

@ -103,9 +103,9 @@ en:
question_text: "What is buyer 2's relationship to buyer 1?"
person:
page_header: ""
check_answer_label: "Person 2’s relationship to Buyer 1"
check_answer_label: "Person 2’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 2’s relationship to Buyer 1?"
question_text: "What is person 2’s relationship to buyer 1?"
age2:
buyer:
@ -139,7 +139,7 @@ en:
page_header: ""
check_answer_label: "Person 2’s gender identity"
hint_text: ""
question_text: "Which of these best describes Person 2’s gender identity?"
question_text: "Which of these best describes person 2’s gender identity?"
ethnic_group2:
page_header: ""
@ -190,7 +190,7 @@ en:
page_header: ""
check_answer_label: "Person 2’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 2’s working situation?"
question_text: "Which of these best describes person 2’s working situation?"
buy2livein:
page_header: ""
@ -224,9 +224,9 @@ en:
relat3:
page_header: ""
check_answer_label: "Person 3’s relationship to Buyer 1"
check_answer_label: "Person 3’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 3’s relationship to Buyer 1?"
question_text: "What is person 3’s relationship to buyer 1?"
age3:
page_header: ""
@ -243,13 +243,13 @@ en:
page_header: ""
check_answer_label: "Person 3’s gender identity"
hint_text: ""
question_text: "Which of these best describes Person 3’s gender identity?"
question_text: "Which of these best describes person 3’s gender identity?"
ecstat3:
page_header: ""
check_answer_label: "Person 3’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 3’s working situation?"
question_text: "Which of these best describes person 3’s working situation?"
details_known_4:
page_header: ""
@ -259,9 +259,9 @@ en:
relat4:
page_header: ""
check_answer_label: "Person 4’s relationship to Buyer 1"
check_answer_label: "Person 4’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 4’s relationship to Buyer 1?"
question_text: "What is person 4’s relationship to buyer 1?"
age4:
page_header: ""
@ -278,13 +278,13 @@ en:
page_header: ""
check_answer_label: "Person 4’s gender identity"
hint_text: ""
question_text: "Which of these best describes Person 4’s gender identity?"
question_text: "Which of these best describes person 4’s gender identity?"
ecstat4:
page_header: ""
check_answer_label: "Person 4’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 4’s working situation?"
question_text: "Which of these best describes person 4’s working situation?"
details_known_5:
page_header: ""
@ -294,9 +294,9 @@ en:
relat5:
page_header: ""
check_answer_label: "Person 5’s relationship to Buyer 1"
check_answer_label: "Person 5’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 5’s relationship to Buyer 1?"
question_text: "What is person 5’s relationship to buyer 1?"
age5:
page_header: ""
@ -313,13 +313,13 @@ en:
page_header: ""
check_answer_label: "Person 5’s gender identity"
hint_text: ""
question_text: "Which of these best describes Person 5’s gender identity?"
question_text: "Which of these best describes person 5’s gender identity?"
ecstat5:
page_header: ""
check_answer_label: "Person 5’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 5’s working situation?"
question_text: "Which of these best describes person 5’s working situation?"
details_known_6:
page_header: ""
@ -329,9 +329,9 @@ en:
relat6:
page_header: ""
check_answer_label: "Person 6’s relationship to Buyer 1"
check_answer_label: "Person 6’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 6’s relationship to Buyer 1?"
question_text: "What is person 6’s relationship to buyer 1?"
age6:
page_header: ""
@ -348,10 +348,10 @@ en:
page_header: ""
check_answer_label: "Person 6’s gender identity"
hint_text: ""
question_text: "Which of these best describes Person 6’s gender identity?"
question_text: "Which of these best describes person 6’s gender identity?"
ecstat6:
page_header: ""
check_answer_label: "Person 6’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 6’s working situation?"
question_text: "Which of these best describes person 6’s working situation?"

2
config/locales/forms/2023/sales/income_benefits_and_savings.en.yml

@ -55,7 +55,7 @@ en:
savingsnk:
check_answer_label: "Buyers’ total savings known?"
hint_text: ""
question_text: "Do you know how much the 'buyers' had in savings before they paid any deposit for the property?"
question_text: "Do you know how much the buyers had in savings before they paid any deposit for the property?"
savings:
check_answer_label: "Buyers’ total savings before any deposit paid"
hint_text: "Include any savings, investments, ISAs, premium bonds, shares, or money held in a bank or building society account."

10
config/locales/forms/2023/sales/sale_information.en.yml

@ -28,7 +28,7 @@ en:
staircasing:
page_header: ""
check_answer_label: "Staircasing transaction"
hint_text: "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property"
hint_text: "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property."
question_text: "Is this a staircasing transaction?"
about_staircasing:
page_header: "About the staircasing transaction"
@ -83,9 +83,9 @@ en:
question_text: "Was the buyer a private registered provider, housing association or local authority tenant immediately before this sale?"
frombeds:
page_header: "About the buyers’ previous property"
page_header: ""
check_answer_label: "Number of bedrooms in previous property"
hint_text: "For bedsits enter 1"
hint_text: "A bedsit has 1 bedroom."
question_text: "How many bedrooms did the property have?"
fromprop:
@ -113,13 +113,13 @@ en:
question_text: "What was the initial percentage equity stake purchased?"
mortgageused:
page_header: "Mortgage Amount"
page_header: ""
check_answer_label: "Mortgage used"
hint_text: ""
question_text: "Was a mortgage used for the purchase of this property?"
mortgage:
page_header: "Mortgage Amount"
page_header: ""
check_answer_label: "Mortgage amount"
hint_text: "Enter the amount of mortgage agreed with the mortgage lender. Exclude any deposits or cash payments. Numeric in pounds. Rounded to the nearest pound."
question_text: "What is the mortgage amount?"

2
config/locales/forms/2024/lettings/household_characteristics.en.yml

@ -13,7 +13,7 @@ en:
page_header: ""
age1_known:
check_answer_label: ""
hint_text: "The lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same amount of paid work, the lead tenant is whoever is the oldest."
hint_text: "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
question_text: "Do you know the lead tenant’s age?"
age1:
check_answer_label: "Lead tenant’s age"

2
config/locales/forms/2024/lettings/income_and_benefits.en.yml

@ -103,6 +103,6 @@ en:
hint_text: "You only need to give an approximate figure."
question_text: "Can you estimate the outstanding amount?"
tshortfall:
check_answer_label: "Estimated outstanding amountt"
check_answer_label: "Estimated outstanding amount"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "Estimated outstanding amount"

40
config/locales/forms/2024/sales/household_characteristics.en.yml

@ -85,9 +85,9 @@ en:
question_text: "What is buyer 2's relationship to buyer 1?"
person:
page_header: ""
check_answer_label: "Person 2’s relationship to Buyer 1"
check_answer_label: "Person 2’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 2’s relationship to Buyer 1?"
question_text: "What is person 2’s relationship to buyer 1?"
age2:
buyer:
@ -121,7 +121,7 @@ en:
page_header: ""
check_answer_label: "Person 2’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 2’s gender identity?"
question_text: "Which of these best describes person 2’s gender identity?"
ethnic_group2:
page_header: ""
@ -178,7 +178,7 @@ en:
page_header: ""
check_answer_label: "Person 2’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 2’s working situation?"
question_text: "Which of these best describes person 2’s working situation?"
buy2livein:
page_header: ""
@ -212,9 +212,9 @@ en:
relat3:
page_header: ""
check_answer_label: "Person 3’s relationship to Buyer 1"
check_answer_label: "Person 3’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 3’s relationship to Buyer 1?"
question_text: "What is person 3’s relationship to buyer 1?"
age3:
page_header: ""
@ -231,13 +231,13 @@ en:
page_header: ""
check_answer_label: "Person 3’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 3’s gender identity?"
question_text: "Which of these best describes person 3’s gender identity?"
ecstat3:
page_header: ""
check_answer_label: "Person 3’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 3’s working situation?"
question_text: "Which of these best describes person 3’s working situation?"
details_known_4:
page_header: ""
@ -247,9 +247,9 @@ en:
relat4:
page_header: ""
check_answer_label: "Person 4’s relationship to Buyer 1"
check_answer_label: "Person 4’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 4’s relationship to Buyer 1?"
question_text: "What is person 4’s relationship to buyer 1?"
age4:
page_header: ""
@ -266,13 +266,13 @@ en:
page_header: ""
check_answer_label: "Person 4’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 4’s gender identity?"
question_text: "Which of these best describes person 4’s gender identity?"
ecstat4:
page_header: ""
check_answer_label: "Person 4’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 4’s working situation?"
question_text: "Which of these best describes person 4’s working situation?"
details_known_5:
page_header: ""
@ -282,9 +282,9 @@ en:
relat5:
page_header: ""
check_answer_label: "Person 5’s relationship to Buyer 1"
check_answer_label: "Person 5’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 5’s relationship to Buyer 1?"
question_text: "What is person 5’s relationship to buyer 1?"
age5:
page_header: ""
@ -301,13 +301,13 @@ en:
page_header: ""
check_answer_label: "Person 5’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 5’s gender identity?"
question_text: "Which of these best describes person 5’s gender identity?"
ecstat5:
page_header: ""
check_answer_label: "Person 5’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 5’s working situation?"
question_text: "Which of these best describes person 5’s working situation?"
details_known_6:
page_header: ""
@ -317,9 +317,9 @@ en:
relat6:
page_header: ""
check_answer_label: "Person 6’s relationship to Buyer 1"
check_answer_label: "Person 6’s relationship to buyer 1"
hint_text: ""
question_text: "What is Person 6’s relationship to Buyer 1?"
question_text: "What is person 6’s relationship to buyer 1?"
age6:
page_header: ""
@ -336,10 +336,10 @@ en:
page_header: ""
check_answer_label: "Person 6’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 6’s gender identity?"
question_text: "Which of these best describes person 6’s gender identity?"
ecstat6:
page_header: ""
check_answer_label: "Person 6’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 6’s working situation?"
question_text: "Which of these best describes person 6’s working situation?"

2
config/locales/forms/2024/sales/income_benefits_and_savings.en.yml

@ -55,7 +55,7 @@ en:
savingsnk:
check_answer_label: "Buyers’ total savings known?"
hint_text: ""
question_text: "Do you know how much the 'buyers' had in savings before they paid any deposit for the property?"
question_text: "Do you know how much the buyers had in savings before they paid any deposit for the property?"
savings:
check_answer_label: "Buyers’ total savings before any deposit paid"
hint_text: "Include any savings, investments, ISAs, premium bonds, shares, or money held in a bank or building society account."

10
config/locales/forms/2024/sales/sale_information.en.yml

@ -28,7 +28,7 @@ en:
staircasing:
page_header: ""
check_answer_label: "Staircasing transaction"
hint_text: "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property"
hint_text: "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property."
question_text: "Is this a staircasing transaction?"
about_staircasing:
page_header: "About the staircasing transaction"
@ -87,9 +87,9 @@ en:
question_text: "Was the buyer a private registered provider, housing association or local authority tenant immediately before this sale?"
frombeds:
page_header: "About the buyers’ previous property"
page_header: ""
check_answer_label: "Number of bedrooms in previous property"
hint_text: "For bedsits enter 1"
hint_text: "A bedsit has 1 bedroom."
question_text: "How many bedrooms did the property have?"
fromprop:
@ -117,13 +117,13 @@ en:
question_text: "What was the initial percentage equity stake purchased?"
mortgageused:
page_header: "Mortgage Amount"
page_header: ""
check_answer_label: "Mortgage used"
hint_text: ""
question_text: "Was a mortgage used for the purchase of this property?"
mortgage:
page_header: "Mortgage Amount"
page_header: ""
check_answer_label: "Mortgage amount"
hint_text: "Enter the amount of mortgage agreed with the mortgage lender. Exclude any deposits or cash payments. Numeric in pounds. Rounded to the nearest pound."
question_text: "What is the mortgage amount?"

2
config/locales/forms/2025/lettings/household_characteristics.en.yml

@ -13,7 +13,7 @@ en:
page_header: ""
age1_known:
check_answer_label: ""
hint_text: "The lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same amount of paid work, the lead tenant is whoever is the oldest."
hint_text: "The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest."
question_text: "Do you know the lead tenant’s age?"
age1:
check_answer_label: "Lead tenant’s age"

2
config/locales/forms/2025/lettings/income_and_benefits.en.yml

@ -103,6 +103,6 @@ en:
hint_text: "You only need to give an approximate figure."
question_text: "Can you estimate the outstanding amount?"
tshortfall:
check_answer_label: "Estimated outstanding amountt"
check_answer_label: "Estimated outstanding amount"
hint_text: "Also known as the ‘outstanding amount’."
question_text: "Estimated outstanding amount"

20
config/locales/forms/2025/sales/household_characteristics.en.yml

@ -121,7 +121,7 @@ en:
page_header: ""
check_answer_label: "Person 2’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 2’s gender identity?"
question_text: "Which of these best describes person 2’s gender identity?"
ethnic_group2:
page_header: ""
@ -178,7 +178,7 @@ en:
page_header: ""
check_answer_label: "Person 2’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 2’s working situation?"
question_text: "Which of these best describes person 2’s working situation?"
buy2livein:
page_header: ""
@ -231,13 +231,13 @@ en:
page_header: ""
check_answer_label: "Person 3’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 3’s gender identity?"
question_text: "Which of these best describes person 3’s gender identity?"
ecstat3:
page_header: ""
check_answer_label: "Person 3’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 3’s working situation?"
question_text: "Which of these best describes person 3’s working situation?"
details_known_4:
page_header: ""
@ -266,13 +266,13 @@ en:
page_header: ""
check_answer_label: "Person 4’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 4’s gender identity?"
question_text: "Which of these best describes person 4’s gender identity?"
ecstat4:
page_header: ""
check_answer_label: "Person 4’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 4’s working situation?"
question_text: "Which of these best describes person 4’s working situation?"
details_known_5:
page_header: ""
@ -301,13 +301,13 @@ en:
page_header: ""
check_answer_label: "Person 5’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 5’s gender identity?"
question_text: "Which of these best describes person 5’s gender identity?"
ecstat5:
page_header: ""
check_answer_label: "Person 5’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 5’s working situation?"
question_text: "Which of these best describes person 5’s working situation?"
details_known_6:
page_header: ""
@ -336,10 +336,10 @@ en:
page_header: ""
check_answer_label: "Person 6’s gender identity"
hint_text: "This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth."
question_text: "Which of these best describes Person 6’s gender identity?"
question_text: "Which of these best describes person 6’s gender identity?"
ecstat6:
page_header: ""
check_answer_label: "Person 6’s working situation"
hint_text: ""
question_text: "Which of these best describes Person 6’s working situation?"
question_text: "Which of these best describes person 6’s working situation?"

2
config/locales/forms/2025/sales/income_benefits_and_savings.en.yml

@ -55,7 +55,7 @@ en:
savingsnk:
check_answer_label: "Buyers’ total savings known?"
hint_text: ""
question_text: "Do you know how much the 'buyers' had in savings before they paid any deposit for the property?"
question_text: "Do you know how much the buyers had in savings before they paid any deposit for the property?"
savings:
check_answer_label: "Buyers’ total savings before any deposit paid"
hint_text: "Include any savings, investments, ISAs, premium bonds, shares, or money held in a bank or building society account."

8
config/locales/forms/2025/sales/sale_information.en.yml

@ -105,9 +105,9 @@ en:
question_text: "Was the buyer a private registered provider, housing association or local authority tenant immediately before this sale?"
frombeds:
page_header: "About the buyers’ previous property"
page_header: ""
check_answer_label: "Number of bedrooms in previous property"
hint_text: "For bedsits enter 1"
hint_text: "A bedsit has 1 bedroom."
question_text: "How many bedrooms did the property have?"
fromprop:
@ -145,13 +145,13 @@ en:
question_text: "What was the percentage shared purchased in the initial transaction?"
mortgageused:
page_header: "Mortgage Amount"
page_header: ""
check_answer_label: "Mortgage used?"
hint_text: ""
question_text: "Was a mortgage used for the purchase of this property?"
mortgage:
page_header: "Mortgage Amount"
page_header: ""
check_answer_label: "Mortgage amount"
hint_text: "Enter the amount of mortgage agreed with the mortgage lender. Exclude any deposits or cash payments. Numeric in pounds. Rounded to the nearest pound."
question_text: "What is the mortgage amount?"

2
config/locales/forms/2025/sales/setup.en.yml

@ -42,7 +42,7 @@ en:
staircasing:
page_header: ""
check_answer_label: "Staircasing transaction"
hint_text: "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property"
hint_text: "A staircasing transaction is when the household purchases more shares in their property, increasing the proportion they own and decreasing the proportion the housing association owns. Once the household purchases 100% of the shares, they own the property."
question_text: "Is this a staircasing transaction?"
type:

4
spec/models/form/sales/pages/equity_spec.rb

@ -7,6 +7,10 @@ RSpec.describe Form::Sales::Pages::Equity, type: :model do
let(:page_definition) { nil }
let(:subsection) { instance_double(Form::Subsection, form: instance_double(Form, start_date: Time.zone.local(2023, 4, 1))) }
before do
allow(page.subsection.form).to receive(:start_year_2025_or_later?).and_return(false)
end
it "has correct subsection" do
expect(page.subsection).to eq(subsection)
end

4
spec/models/form/sales/pages/value_shared_ownership_spec.rb

@ -7,6 +7,10 @@ RSpec.describe Form::Sales::Pages::ValueSharedOwnership, type: :model do
let(:page_definition) { nil }
let(:subsection) { instance_double(Form::Subsection, form: instance_double(Form, start_date: Time.zone.local(2023, 4, 1))) }
before do
allow(page.subsection.form).to receive(:start_year_2025_or_later?).and_return(false)
end
it "has correct subsection" do
expect(page.subsection).to eq(subsection)
end

4
spec/models/form/sales/questions/equity_spec.rb

@ -7,6 +7,10 @@ RSpec.describe Form::Sales::Questions::Equity, type: :model do
let(:question_definition) { nil }
let(:page) { instance_double(Form::Page, id: "initial_equity", subsection: instance_double(Form::Subsection, form: instance_double(Form, start_date: Time.zone.local(2023, 4, 1)))) }
before do
allow(page.subsection.form).to receive(:start_year_2025_or_later?).and_return(false)
end
it "has correct page" do
expect(question.page).to eq(page)
end

Loading…
Cancel
Save