From cc2efcf1a681223d5c74eef6fca73cde71dce7c2 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 18 May 2016 18:21:14 +0200 Subject: [PATCH] Improve notes factory --- spec/factories/notes.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spec/factories/notes.rb b/spec/factories/notes.rb index 6801438165d..6f9b3568e70 100644 --- a/spec/factories/notes.rb +++ b/spec/factories/notes.rb @@ -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