Use a random word on the Poll factory name attribute to avoid flaky tests
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user