Commit cc2efcf1 authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Robert Speicher

Improve notes factory

parent 77648aac
...@@ -37,10 +37,7 @@ FactoryGirl.define do ...@@ -37,10 +37,7 @@ FactoryGirl.define do
trait :on_merge_request do trait :on_merge_request do
noteable_type 'MergeRequest' noteable_type 'MergeRequest'
noteable do noteable { create(:merge_request, source_project: project) }
create(:merge_request, source_project: project,
target_project: project)
end
end end
trait :on_project_snippet do trait :on_project_snippet do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment