Browse Source

fix failing tests

pull/193/head
MadeTech Dushan 4 years ago
parent
commit
c6203efb22
  1. 4
      spec/helpers/tasklist_helper_spec.rb
  2. 2
      spec/models/form_handler_spec.rb

4
spec/helpers/tasklist_helper_spec.rb

@ -21,7 +21,7 @@ RSpec.describe TasklistHelper do
describe "get sections count" do describe "get sections count" do
it "returns the total of sections if no status is given" do it "returns the total of sections if no status is given" do
expect(get_subsections_count(form, empty_case_log)).to eq(10) expect(get_subsections_count(empty_case_log)).to eq(10)
end end
it "returns 0 sections for completed sections if no sections are completed" do it "returns 0 sections for completed sections if no sections are completed" do
@ -29,7 +29,7 @@ RSpec.describe TasklistHelper do
end end
it "returns the number of not started sections" do it "returns the number of not started sections" do
expect(get_subsections_count(form, empty_case_log, :not_started)).to eq(9) expect(get_subsections_count(empty_case_log, :not_started)).to eq(9)
end end
it "returns the number of sections in progress" do it "returns the number of sections in progress" do

2
spec/models/form_handler_spec.rb

@ -16,7 +16,7 @@ RSpec.describe FormHandler do
form_handler = FormHandler.instance form_handler = FormHandler.instance
form = form_handler.get_form(test_form_name) form = form_handler.get_form(test_form_name)
expect(form).to be_a(Form) expect(form).to be_a(Form)
expect(form.pages.count).to eq(28) expect(form.pages.count).to eq(31)
end end
end end

Loading…
Cancel
Save