diff options
author | Azul <azul@leap.se> | 2013-01-14 12:04:12 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-01-14 12:04:12 +0100 |
commit | 3cd3c261bdf02b2da5217fa1c469d30f9d92c9a3 (patch) | |
tree | 3cf64d58e588b12103b3adac7397872427ed6677 /users/test/factories.rb | |
parent | 1623f51cc003f7de92f7192bba5ca88dfb2a92f6 (diff) |
got users controller test to pass - tickets controller test next.
Diffstat (limited to 'users/test/factories.rb')
-rw-r--r-- | users/test/factories.rb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/users/test/factories.rb b/users/test/factories.rb index 2802c7e..6b094bd 100644 --- a/users/test/factories.rb +++ b/users/test/factories.rb @@ -4,15 +4,16 @@ FactoryGirl.define do login { Faker::Internet.user_name } password_verifier "1234ABCD" password_salt "4321AB" - end - factory :user_with_settings, :class => User do - login { Faker::Internet.user_name } - password_verifier "1234ABCD" - password_salt "4321AB" - email_forward { Faker::Internet.email } - email_aliases_attributes do - {:a => Faker::Internet.user_name + '@' + APP_CONFIG[:domain]} + factory :user_with_settings do + email_forward { Faker::Internet.email } + email_aliases_attributes do + {:a => Faker::Internet.user_name + '@' + APP_CONFIG[:domain]} + end + end + + factory :admin_user do + is_admin? true end end end |