summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-25 14:52:12 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-01-25 14:52:12 -0500
commitc1743ba4c4d838e95bed0d3e74e48a191684c4bf (patch)
tree761bfee8ecda4b6de1f3c42ab049885d2065c25f /spec/models/note_spec.rb
parentd0315d5393426bffa6f4e3b84c22d3ef6b0dd54f (diff)
downloadgitlab-ce-c1743ba4c4d838e95bed0d3e74e48a191684c4bf.tar.gz
Use a project factory with a repository where necessaryrs-empty_project-for-associations
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index 310fecd8a5c..296213ab034 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -125,7 +125,7 @@ describe Note, models: true do
it_behaves_like 'an editable mentionable' do
subject { create :note, noteable: issue, project: issue.project }
- let(:issue) { create :issue }
+ let(:issue) { create(:issue, project: create(:project, :repository)) }
let(:backref_text) { issue.gfm_reference }
let(:set_mentionable_text) { ->(txt) { subject.note = txt } }
end