Browse Source

test: update tests

pull/1134/head
natdeanlewissoftwire 3 years ago
parent
commit
d659b377fe
  1. 8
      db/schema.rb
  2. 4
      spec/models/form_handler_spec.rb

8
db/schema.rb

@ -420,6 +420,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_04_164318) do
t.string "relat4"
t.string "relat5"
t.string "relat6"
t.integer "hb"
t.integer "savings_value_check"
t.integer "deposit_value_check"
t.integer "frombeds"
t.integer "staircase"
t.integer "stairbought"
@ -454,10 +457,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_04_164318) do
t.integer "hhregres"
t.integer "hhregresstill"
t.integer "proplen"
t.integer "mscharge_known"
t.decimal "mscharge", precision: 10, scale: 2
t.integer "prevten"
t.integer "savings_value_check"
t.integer "deposit_value_check"
t.integer "hb"
t.integer "mortgageused"
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id"
t.index ["managing_organisation_id"], name: "index_sales_logs_on_managing_organisation_id"

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(117)
expect(form.pages.count).to eq(119)
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(117)
expect(form.pages.count).to eq(119)
expect(form.name).to eq("2021_2022_sales")
end
end

Loading…
Cancel
Save