Skip to content

Commit 6647e85

Browse files
authored
Merge pull request #2473 from alphagov/ldeb-add-none-of-the-above-form-to-seed
Add autocomplete question with none of the above question to db seed
2 parents 412d4a8 + 8e05162 commit 6647e85

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

db/seeds.rb

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
name: "None of the above form",
351351
pages: [
352352
Page.create(
353-
question_text: "Which option do you want",
353+
question_text: "Which option do you want?",
354354
answer_type: "selection",
355355
answer_settings: {
356356
only_one_option: "true",
@@ -365,6 +365,21 @@
365365
},
366366
is_optional: true,
367367
),
368+
Page.create(
369+
question_text: "What is your favourite number?",
370+
answer_type: "selection",
371+
answer_settings: {
372+
only_one_option: "true",
373+
selection_options: (0..100).map do |number|
374+
{ "name": number, value: number }
375+
end,
376+
none_of_the_above_question: {
377+
question_text: "Enter a number",
378+
is_optional: "false",
379+
},
380+
},
381+
is_optional: true,
382+
),
368383
],
369384
question_section_completed: true,
370385
declaration_text: "",

0 commit comments

Comments
 (0)