Skip to content
Snippets Groups Projects
Commit 5ac61d7b authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Improve specs for issue move service

parent 57ea33bf
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -163,8 +163,7 @@ describe Issues::MoveService, services: true do
 
context 'issue description with uploads' do
let(:uploader) { build(:file_uploader, project: old_project) }
let(:markdown) { uploader.to_h[:markdown] }
let(:description) { "Text and #{markdown}" }
let(:description) { "Text and #{uploader.to_markdown}" }
 
include_context 'issue move executed'
 
Loading
Loading
@@ -172,6 +171,7 @@ describe Issues::MoveService, services: true do
expect(new_issue.description).to_not eq description
expect(new_issue.description)
.to match(/Text and #{FileUploader::MARKDOWN_PATTERN}/)
expect(new_issue.description).to_not include uploader.secret
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment