Browse Source

fix failing spec

pull/252/head
MadeTech Dushan 4 years ago
parent
commit
3a72d6e262
  1. 4
      app/models/form.rb
  2. 2
      spec/features/form/check_answers_page_spec.rb

4
app/models/form.rb

@ -61,9 +61,11 @@ class Form
next_incomplete_section_redirect_path(next_subsection, case_log)
when :in_progress
"#{next_subsection.id}/check_answers".dasherize
else
when :not_started
first_question_in_subsection = next_subsection.pages.first.id
first_question_in_subsection.to_s.dasherize
else
"error"
end
end

2
spec/features/form/check_answers_page_spec.rb

@ -179,6 +179,8 @@ RSpec.describe "Form Check Answers Page" do
:in_progress,
owning_organisation: user.organisation,
managing_organisation: user.organisation,
tenant_code: nil,
age1: nil,
layear: "1 to 2 years",
lawaitlist: "Less than 1 year",
property_postcode: "NW1 5TY",

Loading…
Cancel
Save