trabajo-afectivo/spec/factories/object_lookup.rb

8 lines
226 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
FactoryBot.define do
factory :object_lookup do
name { (ApplicationModel.descendants.map(&:name) - ObjectLookup.pluck(:name)).sample }
end
end