summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/factories.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/factories.rb b/test/factories.rb
index e16c738..0734688 100644
--- a/test/factories.rb
+++ b/test/factories.rb
@@ -6,7 +6,9 @@ end
FactoryGirl.define do
factory :user do
- login { Faker::Internet.user_name }
+ # Faker::Internet.user_name alone was sometimes
+ # producing duplicate usernames.
+ login { Faker::Internet.user_name + '_' + SecureRandom.hex(4) }
password_verifier "1234ABCD"
password_salt "4321AB"