external_sync.rb 449 B

12345678910111213141516
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :external_sync do
  4. source { 'Some3rdPartyService' }
  5. source_id { SecureRandom.uuid }
  6. object { 'Ticket' }
  7. o_id { 1 }
  8. # https://github.com/thoughtbot/factory_bot/issues/1142
  9. after :build do |record, options|
  10. record.source_id = options.source_id
  11. record.source = options.source
  12. end
  13. end
  14. end