From 70d6a888316606a8b31bfd356aaecf1a6b7f1ddd Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Wed, 24 Jan 2024 14:03:43 +0000 Subject: [PATCH] refactor: lint --- .../first_time_property_let_as_social_housing_spec.rb | 2 +- .../first_time_property_let_as_social_housing_spec.rb | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/models/form/lettings/pages/first_time_property_let_as_social_housing_spec.rb b/spec/models/form/lettings/pages/first_time_property_let_as_social_housing_spec.rb index 3919b2728..8f0f5c2b7 100644 --- a/spec/models/form/lettings/pages/first_time_property_let_as_social_housing_spec.rb +++ b/spec/models/form/lettings/pages/first_time_property_let_as_social_housing_spec.rb @@ -2,6 +2,7 @@ require "rails_helper" RSpec.describe Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing, type: :model do subject(:page) { described_class.new(page_id, page_definition, subsection) } + let(:page_id) { nil } let(:page_definition) { nil } let(:subsection) { instance_double(Form::Subsection) } @@ -12,7 +13,6 @@ RSpec.describe Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing, type: allow(subsection).to receive(:form).and_return(form) end - it "has correct subsection" do expect(page.subsection).to eq(subsection) end diff --git a/spec/models/form/lettings/questions/first_time_property_let_as_social_housing_spec.rb b/spec/models/form/lettings/questions/first_time_property_let_as_social_housing_spec.rb index 6a7fd6f13..e88c4ac8b 100644 --- a/spec/models/form/lettings/questions/first_time_property_let_as_social_housing_spec.rb +++ b/spec/models/form/lettings/questions/first_time_property_let_as_social_housing_spec.rb @@ -2,6 +2,7 @@ require "rails_helper" RSpec.describe Form::Lettings::Questions::FirstTimePropertyLetAsSocialHousing, type: :model do subject(:question) { described_class.new(question_id, question_definition, page) } + let(:question_id) { nil } let(:question_definition) { nil } let(:page) { instance_double(Form::Page) } @@ -38,9 +39,9 @@ RSpec.describe Form::Lettings::Questions::FirstTimePropertyLetAsSocialHousing, t it "has the correct answer_options" do expect(question.answer_options).to eq({ - "1" => { "value" => "Yes", "hint" => "This property was previously used for other purposes or is a new-build." }, - "0" => { "value" => "No", "hint" => "This is a re-let of existing social housing stock." }, - }) + "1" => { "value" => "Yes", "hint" => "This property was previously used for other purposes or is a new-build." }, + "0" => { "value" => "No", "hint" => "This is a re-let of existing social housing stock." }, + }) end end end