type_lookup.rb 405 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :type_lookup do
  4. name do
  5. # The following line ensures that the name generated by Faker
  6. # does not conflict with any existing names in the DB.
  7. Faker::Verb.unique.exclude(:past_participle, [], TypeLookup.pluck(:name))
  8. Faker::Verb.unique.past_participle
  9. end
  10. end
  11. end