spec fixtures for seed database ideas
This commit is contained in:
commit
bb932a6089
153
spec_fixtures/answers.yml
Normal file
153
spec_fixtures/answers.yml
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
roy1:
|
||||||
|
candidate: roy
|
||||||
|
question: fed1
|
||||||
|
answer: option2
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 90.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 90.minutes %>
|
||||||
|
|
||||||
|
roy2:
|
||||||
|
candidate: roy
|
||||||
|
question: fed2
|
||||||
|
answer: ["option-1", "option-4", "option5"]
|
||||||
|
saved: 1
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 85.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 85.minutes %>
|
||||||
|
|
||||||
|
dawn1:
|
||||||
|
candidate: dawn
|
||||||
|
question: fed1
|
||||||
|
answer: option-1
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 2280.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 2280.minutes %>
|
||||||
|
|
||||||
|
dawn2:
|
||||||
|
candidate: dawn
|
||||||
|
question: fed2
|
||||||
|
answer: ["option2", "option-4"]
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 2282.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 2282.minutes %>
|
||||||
|
|
||||||
|
dawn3:
|
||||||
|
candidate: dawn
|
||||||
|
question: fed3
|
||||||
|
answer: {html: "<h1>I'm a little tealpot</h1>", css: 'h1: {color: teal;}', js: ''}
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 2284.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 2284.minutes %>
|
||||||
|
|
||||||
|
dawn4:
|
||||||
|
candidate: dawn
|
||||||
|
question: fed4
|
||||||
|
answer: Vestibulum id ligula porta felis euismod semper. Sed posuere consectetur est at lobortis.
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 2288.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 2288.minutes %>
|
||||||
|
|
||||||
|
dawn5:
|
||||||
|
candidate: dawn
|
||||||
|
question: fed5
|
||||||
|
answer: "option 3"
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 2292.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 2292.minutes %>
|
||||||
|
|
||||||
|
richard1:
|
||||||
|
candidate: richard
|
||||||
|
question: fed1
|
||||||
|
answer: option 3
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 22.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 22.minutes %>
|
||||||
|
|
||||||
|
richard2:
|
||||||
|
candidate: richard
|
||||||
|
question: fed2
|
||||||
|
answer: [option-1, option2, option5]
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 24.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 4.minutes %>
|
||||||
|
|
||||||
|
richard3:
|
||||||
|
candidate: richard
|
||||||
|
question: fed3
|
||||||
|
answer: {html: '<h1>Salmon</h1>', css: 'h1: {color: salmon;}', js: ''}
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 26.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 6.minutes %>
|
||||||
|
|
||||||
|
richard4:
|
||||||
|
candidate: richard
|
||||||
|
question: fed4
|
||||||
|
answer: Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 28.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 28.minutes %>
|
||||||
|
|
||||||
|
richard5:
|
||||||
|
candidate: richard
|
||||||
|
question: fed5
|
||||||
|
answer: option-1
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 30.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 30.minutes %>
|
||||||
|
|
||||||
|
richard6:
|
||||||
|
candidate: richard
|
||||||
|
question: fed6
|
||||||
|
answer: Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 32.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 12.minutes %>
|
||||||
|
|
||||||
|
richard7:
|
||||||
|
candidate: richard
|
||||||
|
question: fed7
|
||||||
|
answer: {html: '<p>This means <strong>jQuery</strong> needs to be available in live-coder!</p>', css: 'strong: {font-size: 1.6em;} green: {color: green;}', js: '$("strong").addClass("green");'}
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 34.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 14.minutes %>
|
||||||
|
|
||||||
|
richard8:
|
||||||
|
candidate: richard
|
||||||
|
question: fed8
|
||||||
|
answer: option2
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 36.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 16.minutes %>
|
||||||
|
|
||||||
|
richard9:
|
||||||
|
candidate: richard
|
||||||
|
question: fed9
|
||||||
|
answer: Grunt
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 38.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 18.minutes %>
|
||||||
|
|
||||||
|
richard10:
|
||||||
|
candidate: richard
|
||||||
|
question: fed10
|
||||||
|
answer: ["Live long and prosper", "Who you calling Scruffy?"]
|
||||||
|
saved: 0
|
||||||
|
submitted: true
|
||||||
|
created_at: <%= DateTime.now() - 36.hours - 40.minutes %>
|
||||||
|
updated_at: <%= DateTime.now() - 36.hours - 20.minutes %>
|
||||||
|
|
36
spec_fixtures/candidates.yml
Normal file
36
spec_fixtures/candidates.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
roy:
|
||||||
|
# test_hash:
|
||||||
|
name: Roy Cruz
|
||||||
|
email: roy.cruz@mailinator.com
|
||||||
|
experience: 0-3
|
||||||
|
recruiter: reviewer
|
||||||
|
completed: false
|
||||||
|
reminded: false
|
||||||
|
|
||||||
|
martha:
|
||||||
|
# test_hash:
|
||||||
|
name: Martha Watts
|
||||||
|
email: martha.watts@mailinator.com
|
||||||
|
experience: 4-6
|
||||||
|
recruiter: reviewer
|
||||||
|
completed: false
|
||||||
|
reminded: false
|
||||||
|
|
||||||
|
dawn:
|
||||||
|
# test_hash:
|
||||||
|
name: Dawn Hopkins
|
||||||
|
email: dawn.hopkins@mailinator.com
|
||||||
|
experience: 0-2
|
||||||
|
recruiter: reviewer
|
||||||
|
completed: false
|
||||||
|
reminded: true
|
||||||
|
|
||||||
|
richard:
|
||||||
|
# test_hash:
|
||||||
|
name: Richard Burns
|
||||||
|
email: richard.burns@mailinator.com
|
||||||
|
experience: 15+
|
||||||
|
recruiter: reviewer
|
||||||
|
completed: true
|
||||||
|
reminded: false
|
||||||
|
|
79
spec_fixtures/questions.yml
Normal file
79
spec_fixtures/questions.yml
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
fed1:
|
||||||
|
question: Select an example of media query from below.
|
||||||
|
category: CSS
|
||||||
|
input_type: radio
|
||||||
|
input_options: [ option-1, option2, "option 3"]
|
||||||
|
sort: 0
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed2:
|
||||||
|
question: What are some ways you can improve a site's performance (load time)?
|
||||||
|
category: Performance
|
||||||
|
input_type: checkbox
|
||||||
|
input_options: [ option-1, option2, "option 3", option-4, option5]
|
||||||
|
sort: 1
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed3:
|
||||||
|
question: How would you create a widget that would fit in a 250px wide area as well as a 400px wide area?
|
||||||
|
category: CSS
|
||||||
|
input_type: live-coder
|
||||||
|
input_options:
|
||||||
|
sort: 2
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed4:
|
||||||
|
question: Briefly explain the principles of Progressive Enhancement.
|
||||||
|
category: Performance
|
||||||
|
input_type: text
|
||||||
|
input_options:
|
||||||
|
sort: 3
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed5:
|
||||||
|
question: Which is your favorite grid system?
|
||||||
|
category: CSS
|
||||||
|
input_type: radio
|
||||||
|
input_options: [ option-1, option2, "option 3"]
|
||||||
|
sort: 4
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed6:
|
||||||
|
question: List one advantage of using IDs over classes. List one disadvantage.
|
||||||
|
category: CSS
|
||||||
|
input_type: text
|
||||||
|
input_options:
|
||||||
|
sort: 5
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed7:
|
||||||
|
question: Provide a code example to manipulate the DOM using jQuery/JavaScript to change the classname of a div 'classB' to 'classC', only if the div 'classA' exists in the page?
|
||||||
|
category: Javascript
|
||||||
|
input_type: live-coder
|
||||||
|
input_options:
|
||||||
|
sort: 6
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed8:
|
||||||
|
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_options: [ option-1, option2, "option 3", option-4]
|
||||||
|
sort: 7
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed9:
|
||||||
|
question: Grunt or Gulp?
|
||||||
|
category: Javascript
|
||||||
|
input_type: radio
|
||||||
|
input_options: [Grunt, Gulp, Neither, Either]
|
||||||
|
sort: 8
|
||||||
|
active: true
|
||||||
|
|
||||||
|
fed10:
|
||||||
|
question: StarWars or Star Trek?
|
||||||
|
category: Performance
|
||||||
|
input_type: checkbox
|
||||||
|
input_options: ["Live long and prosper", "Who you calling Scruffy?", "J.J. Abrams"]
|
||||||
|
sort: 9
|
||||||
|
active: true
|
3
spec_fixtures/quizzes.yml
Normal file
3
spec_fixtures/quizzes.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fed:
|
||||||
|
unit: PDR
|
||||||
|
dept: FED
|
15
spec_fixtures/users.yml
Normal file
15
spec_fixtures/users.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
recruiter:
|
||||||
|
name: Sam Recruiter
|
||||||
|
email: pdr.recruiter@mailinator.com
|
||||||
|
role: recruiter
|
||||||
|
|
||||||
|
reviewer:
|
||||||
|
name: Tina Reviewer
|
||||||
|
email: fed.reviewer@mailinator.com
|
||||||
|
role: reviewer
|
||||||
|
|
||||||
|
admin:
|
||||||
|
name: Alan Admin
|
||||||
|
email: alan.admin@mailinator.com
|
||||||
|
role: admin
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user