Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement