authorization.rb 398 B

123456789101112131415
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :authorization do
  4. uid { Faker::Number.unique.number(digits: 10) }
  5. user { create(:customer) }
  6. provider { 'foo' }
  7. factory :twitter_authorization do
  8. provider { 'twitter' }
  9. username { Faker::Internet.username }
  10. user_id { user.id }
  11. end
  12. end
  13. end