diff --git a/app/models/form/sales/pages/shared_ownership_type.rb b/app/models/form/sales/pages/shared_ownership_type.rb index 83033cd67..3e65cb628 100644 --- a/app/models/form/sales/pages/shared_ownership_type.rb +++ b/app/models/form/sales/pages/shared_ownership_type.rb @@ -10,7 +10,7 @@ class Form::Sales::Pages::SharedOwnershipType < ::Form::Page def questions @questions ||= [ - Form::Sales::Questions::SharedOwnershipType.new(nil, nil, self), + Form::Sales::Questions::SharedOwnershipType.new(nil, nil, self), ] end diff --git a/spec/models/form/sales/pages/shared_ownership_type_spec.rb b/spec/models/form/sales/pages/shared_ownership_type_spec.rb index be69d7712..5877586bd 100644 --- a/spec/models/form/sales/pages/shared_ownership_type_spec.rb +++ b/spec/models/form/sales/pages/shared_ownership_type_spec.rb @@ -25,6 +25,7 @@ RSpec.describe Form::Sales::Pages::SharedOwnershipType, type: :model do end end end + it "has correct subsection" do expect(page.subsection).to eq(subsection) end diff --git a/spec/models/form/sales/questions/outright_ownership_type_spec.rb b/spec/models/form/sales/questions/outright_ownership_type_spec.rb index f743261e5..cad27f3d8 100644 --- a/spec/models/form/sales/questions/outright_ownership_type_spec.rb +++ b/spec/models/form/sales/questions/outright_ownership_type_spec.rb @@ -64,10 +64,8 @@ RSpec.describe Form::Sales::Questions::OutrightOwnershipType, type: :model do let(:start_date) { Time.utc(2022, 2, 8) } it "does not display a guidance partial" do - expect(question.guidance_partial).to eq(nil); + expect(question.guidance_partial).to eq(nil) end end end - - end