summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-05-22 14:24:22 -0700
committerelijah <elijah@riseup.net>2015-05-22 14:24:22 -0700
commit9d1c6d33645196df697f2733860d23f0bb39b1c4 (patch)
tree83e14157d85bfe2137c5b937c962c1f352986b8e /test
parent63871baf6061668b162972193c55b5a8f7490797 (diff)
fix failing test
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"