trabajo-afectivo/spec/factories/authorization.rb
2022-01-01 14:38:12 +01:00

16 lines
393 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
FactoryBot.define do
factory :authorization do
transient do
user { create(:customer) }
end
factory :twitter_authorization do
provider { 'twitter' }
uid { Faker::Number.number(digits: 10) }
username { Faker::Internet.username }
user_id { user.id }
end
end
end