11 lines
282 B
Ruby
11 lines
282 B
Ruby
|
# 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
|