diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-06-16 20:27:12 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-06-16 20:27:12 -0400 |
commit | e71c64146a4291e21857fd900be7ff000ccdd8a9 (patch) | |
tree | 31928dba9a297b24842dec77b156d0ff589c3afc | |
parent | 03ba240fddb30800d99bb251347edd67a4fa830f (diff) | |
parent | 6e05270b6c8a213b1192a69cfa35d8372567029d (diff) | |
download | gitlab-ce-e71c64146a4291e21857fd900be7ff000ccdd8a9.tar.gz |
Merge remote-tracking branch 'dev/master'
-rw-r--r-- | spec/finders/notes_finder_spec.rb | 7 |
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 |