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