diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-01-24 20:30:56 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-01-24 20:30:56 -0500 |
commit | d0315d5393426bffa6f4e3b84c22d3ef6b0dd54f (patch) | |
tree | d06c6f71628daeffc55b6eb1218d22cd483132ce /spec/factories/notes.rb | |
parent | d55839120e92be48b30d248ce9d72a19be038c79 (diff) | |
download | gitlab-ce-d0315d5393426bffa6f4e3b84c22d3ef6b0dd54f.tar.gz |
Factories with a project association use `:empty_project` by default
Diffstat (limited to 'spec/factories/notes.rb')
-rw-r--r-- | spec/factories/notes.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/factories/notes.rb b/spec/factories/notes.rb index a10ba629760..07474f7e4ba 100644 --- a/spec/factories/notes.rb +++ b/spec/factories/notes.rb @@ -4,7 +4,7 @@ include ActionDispatch::TestProcess FactoryGirl.define do factory :note do - project + project factory: :empty_project note "Note" author on_issue @@ -36,6 +36,7 @@ FactoryGirl.define do end factory :diff_note_on_commit, traits: [:on_commit], class: DiffNote do + association :project, :repository position do Gitlab::Diff::Position.new( old_path: "files/ruby/popen.rb", |