diff options
Diffstat (limited to 'spec/services/notes/build_service_spec.rb')
-rw-r--r-- | spec/services/notes/build_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/notes/build_service_spec.rb b/spec/services/notes/build_service_spec.rb index c25895d2efa..67d8b37f809 100644 --- a/spec/services/notes/build_service_spec.rb +++ b/spec/services/notes/build_service_spec.rb @@ -189,13 +189,13 @@ RSpec.describe Notes::BuildService do context 'issuable author' do let(:user) { noteable_author } - it_behaves_like 'user allowed to set comment as confidential' + it_behaves_like 'user not allowed to set comment as confidential' end context 'issuable assignee' do let(:user) { issuable_assignee } - it_behaves_like 'user allowed to set comment as confidential' + it_behaves_like 'user not allowed to set comment as confidential' end context 'admin' do @@ -265,13 +265,13 @@ RSpec.describe Notes::BuildService do context 'with noteable author' do let(:user) { note.noteable.author } - it_behaves_like 'confidential set to `true`' + it_behaves_like 'returns `Discussion to reply to cannot be found` error' end context 'with noteable assignee' do let(:user) { issuable_assignee } - it_behaves_like 'confidential set to `true`' + it_behaves_like 'returns `Discussion to reply to cannot be found` error' end context 'with guest access' do |