authorization.rb 308 B

1234567891011121314
  1. FactoryBot.define do
  2. factory :authorization do
  3. transient do
  4. user { create(:customer) }
  5. end
  6. factory :twitter_authorization do
  7. provider { 'twitter' }
  8. uid { Faker::Number.number(10) }
  9. username { Faker::Internet.username }
  10. user_id { user.id }
  11. end
  12. end
  13. end