Browse Source

feat: update tests

pull/1518/head
natdeanlewissoftwire 3 years ago
parent
commit
cabd8fcd37
  1. 2
      spec/models/form/lettings/pages/max_rent_value_check_spec.rb
  2. 2
      spec/models/form/lettings/pages/min_rent_value_check_spec.rb
  3. 2
      spec/models/form/sales/pages/about_price_value_check_spec.rb

2
spec/models/form/lettings/pages/max_rent_value_check_spec.rb

@ -36,6 +36,6 @@ RSpec.describe Form::Lettings::Pages::MaxRentValueCheck, type: :model do
end end
it "has the correct interruption_screen_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[brent startdate la beds rent_type needstype]) expect(page.interruption_screen_question_ids).to eq(%w[brent startdate uprn postcode_full la beds rent_type needstype])
end end
end end

2
spec/models/form/lettings/pages/min_rent_value_check_spec.rb

@ -54,6 +54,6 @@ RSpec.describe Form::Lettings::Pages::MinRentValueCheck, type: :model do
end end
it "has the correct interruption_screen_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[brent startdate la beds rent_type needstype]) expect(page.interruption_screen_question_ids).to eq(%w[brent startdate uprn postcode_full la beds rent_type needstype])
end end
end end

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

@ -53,6 +53,6 @@ RSpec.describe Form::Sales::Pages::AboutPriceValueCheck, type: :model do
end end
it "has the correct interruption_screen_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[value beds la]) expect(page.interruption_screen_question_ids).to eq(%w[value beds uprn postcode_full la])
end end
end end

Loading…
Cancel
Save