Browse Source

CLDC-2075: Header content change on all 3 question pages

pull/1707/head
Aaron Spencer 3 years ago
parent
commit
caaadd4176
  1. 2
      app/models/form/sales/pages/discounted_ownership_type.rb
  2. 2
      app/models/form/sales/pages/outright_ownership_type.rb
  3. 2
      app/models/form/sales/pages/shared_ownership_type.rb
  4. 2
      spec/models/form/sales/pages/discounted_ownership_type_spec.rb
  5. 2
      spec/models/form/sales/pages/outright_ownership_type_spec.rb
  6. 2
      spec/models/form/sales/pages/shared_ownership_type_spec.rb

2
app/models/form/sales/pages/discounted_ownership_type.rb

@ -15,6 +15,6 @@ class Form::Sales::Pages::DiscountedOwnershipType < ::Form::Page
end end
def header def header
"Discounted ownership type" if form.start_date.year >= 2023 "Type of discounted ownership sale" if form.start_date.year >= 2023
end end
end end

2
app/models/form/sales/pages/outright_ownership_type.rb

@ -16,6 +16,6 @@ class Form::Sales::Pages::OutrightOwnershipType < ::Form::Page
end end
def header def header
"Outright ownership type" if form.start_date.year >= 2023 "Type of outright sale" if form.start_date.year >= 2023
end end
end end

2
app/models/form/sales/pages/shared_ownership_type.rb

@ -15,6 +15,6 @@ class Form::Sales::Pages::SharedOwnershipType < ::Form::Page
end end
def header def header
"Shared ownership type" if form.start_date.year >= 2023 "Type of shared ownership sale" if form.start_date.year >= 2023
end end
end end

2
spec/models/form/sales/pages/discounted_ownership_type_spec.rb

@ -13,7 +13,7 @@ RSpec.describe Form::Sales::Pages::DiscountedOwnershipType, type: :model do
let(:start_date) { Time.utc(2023, 2, 8) } let(:start_date) { Time.utc(2023, 2, 8) }
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("Discounted ownership type") expect(page.header).to eq("Type of discounted ownership sale")
end end
end end

2
spec/models/form/sales/pages/outright_ownership_type_spec.rb

@ -35,7 +35,7 @@ RSpec.describe Form::Sales::Pages::OutrightOwnershipType, type: :model do
let(:start_date) { Time.utc(2023, 2, 8) } let(:start_date) { Time.utc(2023, 2, 8) }
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("Outright ownership type") expect(page.header).to eq("Type of outright sale")
end end
end end

2
spec/models/form/sales/pages/shared_ownership_type_spec.rb

@ -13,7 +13,7 @@ RSpec.describe Form::Sales::Pages::SharedOwnershipType, type: :model do
let(:start_date) { Time.utc(2023, 2, 8) } let(:start_date) { Time.utc(2023, 2, 8) }
it "has the correct header" do it "has the correct header" do
expect(page.header).to eq("Shared ownership type") expect(page.header).to eq("Type of shared ownership sale")
end end
end end

Loading…
Cancel
Save