Improve notes factory

This commit is contained in:
Grzegorz Bizon 2016-05-18 18:21:14 +02:00 committed by Robert Speicher
parent 77648aac86
commit cc2efcf1a6

View file

@ -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