Commit 795d3b34 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'fix-static-analysis-failure' into 'master'

Fix a 'Style/RegexpLiteralMixedPreserve' RuboCop offense

See merge request gitlab-org/gitlab!59404
parents 872fee1e 2830ba39
...@@ -113,7 +113,7 @@ RSpec.describe Gitlab::Sanitizers::Exif do ...@@ -113,7 +113,7 @@ RSpec.describe Gitlab::Sanitizers::Exif do
it 'cleans only jpg/tiff images with the correct mime types' do it 'cleans only jpg/tiff images with the correct mime types' do
expect(sanitizer).not_to receive(:extra_tags) expect(sanitizer).not_to receive(:extra_tags)
expect { subject }.to raise_error(RuntimeError, /File type text\/plain not supported/) expect { subject }.to raise_error(RuntimeError, %r{File type text/plain not supported})
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment