diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-20 17:09:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-20 17:09:40 +0200 |
commit | 812fe90ecaef58f1dbe16c3fdfea79e14e7bbc9d (patch) | |
tree | a5d79dec5503d145096cd1bcf20345bb4310fe9c /spec/fabricators/account_fabricator.rb | |
parent | 6c1122a1d99cd58db923148a65b8b1a3dc7abe3d (diff) |
Ensure unique identifiers in fabricated objects in tests (#3173)
Diffstat (limited to 'spec/fabricators/account_fabricator.rb')
-rw-r--r-- | spec/fabricators/account_fabricator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/fabricators/account_fabricator.rb b/spec/fabricators/account_fabricator.rb index 68a758079..446f8ea27 100644 --- a/spec/fabricators/account_fabricator.rb +++ b/spec/fabricators/account_fabricator.rb @@ -1,4 +1,4 @@ Fabricator(:account) do - username { Faker::Internet.user_name(nil, %w(_)) } + username { sequence(:username) { |i| "#{Faker::Internet.user_name(nil, %w(_))}#{i}" } } last_webfingered_at { Time.now.utc } end |