changes poll questions in dev_seeds to have different answers

This commit is contained in:
Juanjo Bazán
2017-02-01 13:26:33 +01:00
parent 64c07a5d56
commit f6b03460ea

View File

@@ -521,7 +521,7 @@ print "Creating Poll Questions"
question = Poll::Question.create!(author: author,
title: Faker::Lorem.sentence(3).truncate(60),
description: description,
valid_answers: Faker::Lorem.words(3).join(', '),
valid_answers: Faker::Lorem.words((2..7).to_a.sample).join(', '),
poll: poll)
end