2017-11-21 21:50:03 +00:00
|
|
|
FactoryBot.define do
|
2017-05-02 11:37:20 +00:00
|
|
|
factory :link do
|
2019-02-10 12:24:22 +00:00
|
|
|
transient do
|
|
|
|
from { Ticket.first }
|
|
|
|
to { Ticket.last }
|
|
|
|
end
|
|
|
|
|
|
|
|
link_type_id { Link::Type.find_by(name: 'normal').id }
|
|
|
|
link_object_source_id { Link::Object.find_by(name: 'Ticket').id }
|
|
|
|
link_object_target_id { Link::Object.find_by(name: 'Ticket').id }
|
|
|
|
link_object_source_value { from.id }
|
|
|
|
link_object_target_value { to.id }
|
2017-05-02 11:37:20 +00:00
|
|
|
end
|
|
|
|
end
|