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
trait :on_merge_request do
noteable_type 'MergeRequest'
noteable do
create(:merge_request, source_project: project,
target_project: project)
end
noteable { create(:merge_request, source_project: project) }
end
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