diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-05 01:27:23 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-05 19:44:14 +0300 |
commit | c319f2114177f011cd0c6c23b04f7c19971268bf (patch) | |
tree | b91a2ace5426bea9a7c6a60eabbd44da394fa80c /spec/factories/notes.rb | |
parent | afa53810deab37c95da245510a7cf85e8846a162 (diff) |
Address review comments
Diffstat (limited to 'spec/factories/notes.rb')
-rw-r--r-- | spec/factories/notes.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/spec/factories/notes.rb b/spec/factories/notes.rb index 0f9056a4914..90c35e2c7f8 100644 --- a/spec/factories/notes.rb +++ b/spec/factories/notes.rb @@ -25,17 +25,11 @@ FactoryGirl.define do end end - factory :discussion_note_on_issue, traits: [:on_issue], class: DiscussionNote do - association :project, :repository - end + factory :discussion_note_on_issue, traits: [:on_issue], class: DiscussionNote - factory :discussion_note_on_commit, traits: [:on_commit], class: DiscussionNote do - association :project, :repository - end + factory :discussion_note_on_commit, traits: [:on_commit], class: DiscussionNote - factory :legacy_diff_note_on_commit, traits: [:on_commit, :legacy_diff_note], class: LegacyDiffNote do - association :project, :repository - end + factory :legacy_diff_note_on_commit, traits: [:on_commit, :legacy_diff_note], class: LegacyDiffNote factory :legacy_diff_note_on_merge_request, traits: [:on_merge_request, :legacy_diff_note], class: LegacyDiffNote do association :project, :repository |