Browse Source

test: update tests

pull/1083/head
natdeanlewissoftwire 2 years ago
parent
commit
f632d72c06
  1. 1
      spec/models/form/sales/subsections/household_characteristics_spec.rb
  2. 4
      spec/models/form_handler_spec.rb

1
spec/models/form/sales/subsections/household_characteristics_spec.rb

@ -33,6 +33,7 @@ RSpec.describe Form::Sales::Subsections::HouseholdCharacteristics, type: :model
buyer_2_working_situation
buyer_2_live_in_property
number_of_others_in_property
person_1_known
person_1_age
person_1_gender_identity
person_1_gender_identity_joint_purchase

4
spec/models/form_handler_spec.rb

@ -52,14 +52,14 @@ RSpec.describe FormHandler do
it "is able to load a current sales form" do
form = form_handler.get_form("current_sales")
expect(form).to be_a(Form)
expect(form.pages.count).to eq(50)
expect(form.pages.count).to eq(51)
expect(form.name).to eq("2022_2023_sales")
end
it "is able to load a previous sales form" do
form = form_handler.get_form("previous_sales")
expect(form).to be_a(Form)
expect(form.pages.count).to eq(50)
expect(form.pages.count).to eq(51)
expect(form.name).to eq("2021_2022_sales")
end
end

Loading…
Cancel
Save