6e0f8453c0
This fixes ./spec/services/projects/unlink_fork_service_spec.rb which somehow started failing on the master branch. It certainly isn't a very elegant solution but seems to be the easiest/best way of solving this problem for the time being.
22 lines
598 B
Ruby
22 lines
598 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: forked_project_links
|
|
#
|
|
# id :integer not null, primary key
|
|
# forked_to_project_id :integer not null
|
|
# forked_from_project_id :integer not null
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
#
|
|
|
|
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
|