Fix helper function name typo at dev seeds

This commit is contained in:
Bertocq
2017-11-13 13:06:24 +01:00
parent fa38e80c1d
commit d8991b51ff

View File

@@ -641,7 +641,7 @@ section "Creating Poll Voters" do
token: SecureRandom.hex(32))
end
def randomly_answer_poll_questions(poll, user)
def randomly_answer_questions(poll, user)
poll.questions.each do |question|
next unless [true, false].sample
Poll::Answer.create!(question_id: question.id, author: user, answer: question.question_answers.sample.title)