object_lookup.rb 227 B

1234567
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :object_lookup do
  4. name { (ApplicationModel.descendants.map(&:name) - ObjectLookup.pluck(:name)).sample }
  5. end
  6. end