diff --git a/spec/fixtures/forms/test_form.json b/spec/fixtures/forms/test_form.json index 95add8988..71d002e13 100644 --- a/spec/fixtures/forms/test_form.json +++ b/spec/fixtures/forms/test_form.json @@ -532,6 +532,18 @@ } } }, + "why_dont_you_know_la": { + "header": "", + "description": "", + "questions": { + "why_dont_you_know_la": { + "check_answer_label": "Reason for not knowing local authority", + "header": "Give a reason why you don’t know the postcode or local authority", + "hint_text": "", + "type": "textarea" + } + } + }, "property_postcode": { "questions": { "property_postcode": { diff --git a/spec/models/form_handler_spec.rb b/spec/models/form_handler_spec.rb index 89cb98542..e87765aac 100644 --- a/spec/models/form_handler_spec.rb +++ b/spec/models/form_handler_spec.rb @@ -15,7 +15,7 @@ RSpec.describe FormHandler do form_handler = FormHandler.instance form = form_handler.get_form("test_form") expect(form).to be_a(Form) - expect(form.pages.count).to eq(24) + expect(form.pages.count).to eq(25) end end