Files
mozo-backend/spec/factories/user_factory.rb
T
Benjamin 46fc427694 updates
2021-04-19 15:14:37 -05:00

22 lines
490 B
Ruby

FactoryBot.define do
factory :user do
sequence( :email ){|i| "test#{i}@example.com" }
password "secret"
trait :other_auth do
sequence( :email ){|i| "test-other-user#{i}@example.com" }
auth_data( {
'info' => {
'nickname' => "UOther",
"name" => "USR Other",
"first_name" => "Usother"
},
"credentials" => {
"token" => "fbAuthToken234",
'expires' => false
}
})
end
end
end