diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-01-25 16:49:52 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-01-25 22:31:24 -0500 |
commit | 0fa1c545b84af029e999ecd0e27a9bcdf60264a2 (patch) | |
tree | 3a83f52e8abe8f9b46653447b470e3cf7b2d1820 /spec/finders/notes_finder_spec.rb | |
parent | 403cb125f5e2aced8088f24966624519f6e11e29 (diff) | |
download | gitlab-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.rb | 4 |
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 } |