Created
January 8, 2016 11:20
-
-
Save DeathRay1977/954004ac7a86cf507d44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file should contain all the record creation needed to seed the database with its default values. | |
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). | |
# | |
# Examples: | |
# | |
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) | |
# Mayor.create(name: 'Emanuel', city: cities.first) | |
tests = Test.create([{ description: "Feb 2016 Cohort", pass_score: 4 }, | |
{ description: "Ronin Feb 2016", pass_score: 4 }, | |
{ description: "Mar 2016 Cohort", pass_score: 5 }, | |
{ description: "Ronin Mar 2016", pass_score: 4 }]) | |
questions = Question.create([{question_text: "Add the value \"codewars\" to the websites array.", | |
rspec_test: "describe Array do\nexpect(websites).to_eq([\"Ronin\"])\nend" }, | |
{question_text: "The websites = [1, 2, 3]. Set the variable val to the last element of the websites array", | |
rspec_test: "describe Array do\nexpect(val).to_eq(3)\nend"}, | |
{question_text: "The numbers array = [1, 2, 3]. Add all the elements of the array together and assign to total", | |
rspec_test: "describe Array do\nexpect(total).to_eq(6)\nend"} | |
]) | |
Applicant.create!(name: "Dan", email:"dan@dan.com", test_id: 1, score: 3) | |
Applicant.create!(name: "Norm", email:"norm@example.com", test_id: 1, score: 3) | |
Applicant.create!(name: "Yev", email:"yev@incredible.com", test_id: 1, score: 3) | |
Applicant.create!(name: "Jay", email:"jay@jay.com", test_id: 1, score: 3) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment