diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-18 18:21:14 +0200 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-29 15:03:00 -0400 |
commit | cc2efcf1a681223d5c74eef6fca73cde71dce7c2 (patch) | |
tree | 0163b051fa59b8ed0516b551bd3820dd9681e409 | |
parent | 77648aac86bdea2cd023604552b73679baf755b2 (diff) | |
download | gitlab-ce-cc2efcf1a681223d5c74eef6fca73cde71dce7c2.tar.gz |
Improve notes factory
-rw-r--r-- | spec/factories/notes.rb | 5 |
1 files changed, 1 insertions, 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 |