link.rb 249 B

1234567
  1. FactoryBot.define do
  2. factory :link do
  3. link_type_id { Link::Type.find_by(name: 'normal').id }
  4. link_object_source_id { Link::Object.find_by(name: 'Ticket').id }
  5. link_object_target_id { Link::Object.find_by(name: 'Ticket').id }
  6. end
  7. end