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
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
it "returns 0 sections for completed sections if no sections are completed" do
@ -29,7 +29,7 @@ RSpec.describe TasklistHelper do
end
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
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 = form_handler.get_form(test_form_name)
expect(form).to be_a(Form)
expect(form.pages.count).to eq(28)
expect(form.pages.count).to eq(31)
end
end

Loading…
Cancel
Save