Browse Source

textarea test added

pull/156/head
Matthew Phelan 3 years ago
parent
commit
a0c3a9378c
  1. 12
      spec/fixtures/forms/test_form.json
  2. 2
      spec/models/form_handler_spec.rb

12
spec/fixtures/forms/test_form.json vendored

@ -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": { "property_postcode": {
"questions": { "questions": {
"property_postcode": { "property_postcode": {

2
spec/models/form_handler_spec.rb

@ -15,7 +15,7 @@ RSpec.describe FormHandler do
form_handler = FormHandler.instance form_handler = FormHandler.instance
form = form_handler.get_form("test_form") form = form_handler.get_form("test_form")
expect(form).to be_a(Form) expect(form).to be_a(Form)
expect(form.pages.count).to eq(24) expect(form.pages.count).to eq(25)
end end
end end

Loading…
Cancel
Save