diff options
author | elijah <elijah@riseup.net> | 2016-03-28 15:52:21 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-03-28 16:03:54 -0700 |
commit | 67b5aa4198e0f6ab2cd29767aedcb4bf5b5dc4d9 (patch) | |
tree | cfea468d3d70363298490cc1ad7b8085688530b7 /test/factories.rb | |
parent | c63791c7ffacb7c6cfc685e2654ffe66f0a6b185 (diff) |
api tokens - clarify terms: "monitors" are admins that authenticated via api token, "tmp" users are users that exist only in tmp db, "test" users are either tmp users or users named "test_user_x"
Diffstat (limited to 'test/factories.rb')
-rw-r--r-- | test/factories.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/factories.rb b/test/factories.rb index b6e1475..5d49729 100644 --- a/test/factories.rb +++ b/test/factories.rb @@ -26,6 +26,10 @@ FactoryGirl.define do end end + factory :test_user do + login {"test_user_" + Faker::Internet.user_name + '_' + SecureRandom.hex(4)} + end + factory :premium_user do effective_service_level_code 2 end |