Skip to content
Snippets Groups Projects
Commit b8cab61f authored by Jared Deckard's avatar Jared Deckard
Browse files

Fix false positive caused by non-interpolated string use

parent 2c0f375f
Branches
Tags
1 merge request!5804Fix inline comment images by removing wrapper #20890
Loading
Loading
@@ -13,8 +13,8 @@ describe Banzai::Filter::ImageLinkFilter, lib: true do
end
 
it 'does not wrap a duplicate link' do
exp = act = %q(<a href="/whatever">#{image('/uploads/e90decf88d8f96fe9e1389afc2e4a91f/test.jpg')}</a>)
expect(filter(act).to_html).to eq exp
doc = filter(%Q(<a href="/whatever">#{image('/uploads/e90decf88d8f96fe9e1389afc2e4a91f/test.jpg')}</a>))
expect(doc.to_html).to match /^<a href="\/whatever"><img[^>]*><\/a>$/
end
 
it 'works with external images' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment