summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-06-16 20:27:12 -0400
committerRobert Speicher <rspeicher@gmail.com>2016-06-16 20:27:12 -0400
commite71c64146a4291e21857fd900be7ff000ccdd8a9 (patch)
tree31928dba9a297b24842dec77b156d0ff589c3afc
parent03ba240fddb30800d99bb251347edd67a4fa830f (diff)
parent6e05270b6c8a213b1192a69cfa35d8372567029d (diff)
downloadgitlab-ce-e71c64146a4291e21857fd900be7ff000ccdd8a9.tar.gz
Merge remote-tracking branch 'dev/master'
-rw-r--r--spec/finders/notes_finder_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/finders/notes_finder_spec.rb b/spec/finders/notes_finder_spec.rb
index 639b28d49ee..1bd354815e4 100644
--- a/spec/finders/notes_finder_spec.rb
+++ b/spec/finders/notes_finder_spec.rb
@@ -49,6 +49,13 @@ describe NotesFinder do
user = create(:user)
expect { NotesFinder.new.execute(project, user, params) }.to raise_error(ActiveRecord::RecordNotFound)
end
+
+ it 'raises an error for project members with guest role' do
+ user = create(:user)
+ project.team << [user, :guest]
+
+ expect { NotesFinder.new.execute(project, user, params) }.to raise_error(ActiveRecord::RecordNotFound)
+ end
end
end
end