generate completed quizzes

This commit is contained in:
Mark Moser
2017-02-24 13:30:22 -06:00
parent b65834d962
commit 7bb795e379
5 changed files with 90 additions and 7 deletions

10
lib/tasks/faker.rake Normal file
View File

@ -0,0 +1,10 @@
# frozen_string_literal: true
namespace :faker do
desc "Generates 10 fake candidates with results."
task results: :environment do
puts "Not for production use" and return if Rails.env == "production"
faker = FakeQuiz.new
faker.create_completed_quizzes 10
end
end