introduce check_other and radio_other question types
completes issue #48
This commit is contained in:
41
test/fixtures/answers.yml
vendored
41
test/fixtures/answers.yml
vendored
@ -84,7 +84,9 @@ dawn7:
|
||||
dawn8:
|
||||
candidate: dawn
|
||||
question: fed8
|
||||
answer: option2
|
||||
answer:
|
||||
options:
|
||||
- option2
|
||||
saved: 0
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 38.hours - 38.minutes %>
|
||||
@ -93,7 +95,10 @@ dawn8:
|
||||
dawn9:
|
||||
candidate: dawn
|
||||
question: fed9
|
||||
answer: Grunt
|
||||
answer:
|
||||
other:
|
||||
options:
|
||||
- Grunt
|
||||
saved: 0
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 38.hours - 38.minutes %>
|
||||
@ -174,7 +179,10 @@ peggy7:
|
||||
peggy8:
|
||||
candidate: peggy
|
||||
question: fed8
|
||||
answer: option2
|
||||
answer:
|
||||
other: Some generic user input
|
||||
options:
|
||||
- other
|
||||
saved: 0
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 38.hours - 38.minutes %>
|
||||
@ -183,7 +191,11 @@ peggy8:
|
||||
peggy9:
|
||||
candidate: peggy
|
||||
question: fed9
|
||||
answer: Grunt
|
||||
answer:
|
||||
other: npm
|
||||
options:
|
||||
- Grunt
|
||||
- other
|
||||
saved: 0
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 38.hours - 38.minutes %>
|
||||
@ -265,7 +277,10 @@ richard7:
|
||||
richard8:
|
||||
candidate: richard
|
||||
question: fed8
|
||||
answer: option-4
|
||||
answer:
|
||||
other: Some generic user input
|
||||
options:
|
||||
- other
|
||||
saved: 0
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 36.hours - 36.minutes %>
|
||||
@ -274,7 +289,11 @@ richard8:
|
||||
richard9:
|
||||
candidate: richard
|
||||
question: fed9
|
||||
answer: Grunt
|
||||
answer:
|
||||
other: Brunch
|
||||
options:
|
||||
- Neither
|
||||
- other
|
||||
saved: 0
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 36.hours - 38.minutes %>
|
||||
@ -355,7 +374,10 @@ juan7:
|
||||
juan8:
|
||||
candidate: juan
|
||||
question: fed8
|
||||
answer: option2
|
||||
answer:
|
||||
other: Some generic user input
|
||||
options:
|
||||
- other
|
||||
saved: 0
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 38.hours - 38.minutes %>
|
||||
@ -364,7 +386,10 @@ juan8:
|
||||
juan9:
|
||||
candidate: juan
|
||||
question: fed9
|
||||
answer: Grunt
|
||||
answer:
|
||||
other: Mimosa
|
||||
options:
|
||||
- other
|
||||
saved: 0
|
||||
submitted: true
|
||||
created_at: <%= DateTime.now() - 38.hours - 38.minutes %>
|
||||
|
7
test/fixtures/questions.yml
vendored
7
test/fixtures/questions.yml
vendored
@ -68,7 +68,7 @@ fed7:
|
||||
category: Javascript
|
||||
input_type: live_code
|
||||
input_options:
|
||||
:html: "<p>sample seed html</p>"
|
||||
:html: "<p>Sample seed HTML</p>"
|
||||
:css: "body { color: #644; }"
|
||||
sort: 6
|
||||
active: true
|
||||
@ -77,12 +77,11 @@ fed8:
|
||||
quiz: fed
|
||||
question: Select the HTML from below that would create an input field which restricts the number of characters inside it to 10.
|
||||
category: HTML
|
||||
input_type: radio
|
||||
input_type: radio_other
|
||||
input_options:
|
||||
- option-1
|
||||
- option2
|
||||
- "option 3"
|
||||
- option-4
|
||||
sort: 7
|
||||
active: true
|
||||
|
||||
@ -90,7 +89,7 @@ fed9:
|
||||
quiz: fed
|
||||
question: Grunt or Gulp?
|
||||
category: Javascript
|
||||
input_type: radio
|
||||
input_type: checkbox_other
|
||||
input_options:
|
||||
- Grunt
|
||||
- Gulp
|
||||
|
Reference in New Issue
Block a user