gitlab-org--gitlab-foss/spec/factories/forked_project_links.rb

12 lines
288 B
Ruby
Raw Normal View History

FactoryGirl.define do
factory :forked_project_link do
association :forked_to_project, factory: :project
association :forked_from_project, factory: :project
after(:create) do |link|
link.forked_from_project.reload
link.forked_to_project.reload
end
end
end