diff options
author | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2022-09-29 13:04:13 +0000 |
---|---|---|
committer | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2022-09-29 13:04:13 +0000 |
commit | 5530068052e4a8825db5cf840be2306e421ee4be (patch) | |
tree | 5e5c11c3803bf2f377c063ce1a00aba91076cf0c /spec/services/notes/copy_service_spec.rb | |
parent | 16918719748469eb301797d7ec94da59269fa197 (diff) | |
parent | e736b21380483e56b6f786480427587225feaf91 (diff) | |
download | gitlab-ce-15-2-stable.tar.gz |
Merge remote-tracking branch 'dev/15-2-stable' into 15-2-stable15-2-stable
Diffstat (limited to 'spec/services/notes/copy_service_spec.rb')
-rw-r--r-- | spec/services/notes/copy_service_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/services/notes/copy_service_spec.rb b/spec/services/notes/copy_service_spec.rb index fd8802e6640..c215570ed2c 100644 --- a/spec/services/notes/copy_service_spec.rb +++ b/spec/services/notes/copy_service_spec.rb @@ -146,8 +146,10 @@ RSpec.describe Notes::CopyService do new_note = to_noteable.notes.first aggregate_failures do - expect(note.note).to match(/Simple text with image: #{FileUploader::MARKDOWN_PATTERN}/) - expect(new_note.note).to match(/Simple text with image: #{FileUploader::MARKDOWN_PATTERN}/) + expect(note.note).to match(/Simple text with image:/o) + expect(FileUploader::MARKDOWN_PATTERN.match(note.note)).not_to be_nil + expect(new_note.note).to match(/Simple text with image:/o) + expect(FileUploader::MARKDOWN_PATTERN.match(new_note.note)).not_to be_nil expect(note.note).not_to eq(new_note.note) expect(note.note_html).not_to eq(new_note.note_html) end |