worker tests

This commit is contained in:
Mark Moser
2016-08-16 14:19:45 -05:00
parent de7ce04615
commit f44b11fde8
3 changed files with 17 additions and 2 deletions

View File

@ -6,7 +6,8 @@ class CandidateQuiz
end
def fetch_question qid
raw_quiz(qid).each_with_object([]) { |row, quiz| quiz << CandidateQuizQuestion.new(row) }
questions = raw_quiz(qid).each_with_object([]) { |row, quiz| quiz << CandidateQuizQuestion.new(row) }
questions.first
end
def build_my_quiz