trabajo-afectivo/spec/factories/authorization.rb

15 lines
308 B
Ruby
Raw Normal View History

FactoryBot.define do
factory :authorization do
transient do
user { create(:customer) }
end
factory :twitter_authorization do
provider { 'twitter' }
uid { Faker::Number.number(10) }
username { Faker::Internet.username }
user_id { user.id }
end
end
end