Browse Source

refactor: lint

pull/2160/head
natdeanlewissoftwire 2 years ago
parent
commit
70d6a88831
  1. 2
      spec/models/form/lettings/pages/first_time_property_let_as_social_housing_spec.rb
  2. 7
      spec/models/form/lettings/questions/first_time_property_let_as_social_housing_spec.rb

2
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

7
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

Loading…
Cancel
Save