Use a random word on the Poll factory name attribute to avoid flaky tests

This commit is contained in:
Bertocq
2017-05-25 12:28:53 +02:00
parent 72facb8e65
commit 6cda0d52d5

View File

@@ -388,7 +388,7 @@ FactoryGirl.define do
end
factory :poll do
sequence(:name) { |n| "Poll #{n}" }
sequence(:name) { |n| "Poll #{Faker::StarWars.character}" }
starts_at { 1.month.ago }
ends_at { 1.month.from_now }