summaryrefslogtreecommitdiff
path: root/spec/services/notes/build_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/notes/build_service_spec.rb')
-rw-r--r--spec/services/notes/build_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/notes/build_service_spec.rb b/spec/services/notes/build_service_spec.rb
index deeab66c4e9..b7b08390dcd 100644
--- a/spec/services/notes/build_service_spec.rb
+++ b/spec/services/notes/build_service_spec.rb
@@ -173,7 +173,7 @@ RSpec.describe Notes::BuildService do
let(:user) { create(:user) }
it 'returns `Discussion to reply to cannot be found` error' do
- expect(new_note.errors.first).to include("Discussion to reply to cannot be found")
+ expect(new_note.errors.added?(:base, "Discussion to reply to cannot be found")).to be true
end
end
end