summaryrefslogtreecommitdiff
path: root/spec/finders/notes_finder_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-25 16:49:52 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-01-25 22:31:24 -0500
commit0fa1c545b84af029e999ecd0e27a9bcdf60264a2 (patch)
tree3a83f52e8abe8f9b46653447b470e3cf7b2d1820 /spec/finders/notes_finder_spec.rb
parent403cb125f5e2aced8088f24966624519f6e11e29 (diff)
downloadgitlab-ce-0fa1c545b84af029e999ecd0e27a9bcdf60264a2.tar.gz
Use `:empty_project` where possible in finder specsrs-empty_project-finders
Diffstat (limited to 'spec/finders/notes_finder_spec.rb')
-rw-r--r--spec/finders/notes_finder_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/finders/notes_finder_spec.rb b/spec/finders/notes_finder_spec.rb
index 4d21254323c..bac653ea451 100644
--- a/spec/finders/notes_finder_spec.rb
+++ b/spec/finders/notes_finder_spec.rb
@@ -28,7 +28,7 @@ describe NotesFinder do
end
it "excludes notes on commits the author can't download" do
- project = create(:project, :private)
+ project = create(:project, :private, :repository)
note = create(:note_on_commit, project: project)
params = { target_type: 'commit', target_id: note.noteable.id }
@@ -76,7 +76,7 @@ describe NotesFinder do
end
context 'for target' do
- let(:project) { create(:project) }
+ let(:project) { create(:project, :repository) }
let(:note1) { create :note_on_commit, project: project }
let(:note2) { create :note_on_commit, project: project }
let(:commit) { note1.noteable }