Browse Source

Setup fixes

pull/1521/head
Kat 3 years ago
parent
commit
c59c1e6db6
  1. 4
      spec/models/form_spec.rb
  2. 2
      spec/models/sales_log_spec.rb

4
spec/models/form_spec.rb

@ -247,9 +247,9 @@ RSpec.describe Form, type: :model do
expect(form.sections[0].class).to eq(Form::Sales::Sections::Setup) expect(form.sections[0].class).to eq(Form::Sales::Sections::Setup)
expect(form.subsections.count).to eq(1) expect(form.subsections.count).to eq(1)
expect(form.subsections.first.id).to eq("setup") expect(form.subsections.first.id).to eq("setup")
expect(form.pages.count).to eq(16) expect(form.pages.count).to eq(18)
expect(form.pages.first.id).to eq("organisation") expect(form.pages.first.id).to eq("organisation")
expect(form.questions.count).to eq(17) expect(form.questions.count).to eq(19)
expect(form.questions.first.id).to eq("owning_organisation_id") expect(form.questions.first.id).to eq("owning_organisation_id")
expect(form.start_date).to eq(Time.zone.parse("2022-04-01")) expect(form.start_date).to eq(Time.zone.parse("2022-04-01"))
expect(form.end_date).to eq(Time.zone.parse("2023-06-07")) expect(form.end_date).to eq(Time.zone.parse("2023-06-07"))

2
spec/models/sales_log_spec.rb

@ -61,6 +61,7 @@ RSpec.describe SalesLog, type: :model do
old_persons_shared_ownership_value_check old_persons_shared_ownership_value_check
othtype othtype
discounted_sale_value_check discounted_sale_value_check
buyer_livein_value_check
proplen proplen
mortlen mortlen
frombeds frombeds
@ -79,6 +80,7 @@ RSpec.describe SalesLog, type: :model do
old_persons_shared_ownership_value_check old_persons_shared_ownership_value_check
othtype othtype
discounted_sale_value_check discounted_sale_value_check
buyer_livein_value_check
address_line2 address_line2
county county
postcode_full postcode_full

Loading…
Cancel
Save