Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
b8cab61f
Commit
b8cab61f
authored
Aug 13, 2016
by
Jared Deckard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix false positive caused by non-interpolated string use
parent
2c0f375f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/banzai/filter/image_link_filter_spec.rb
spec/lib/banzai/filter/image_link_filter_spec.rb
+2
-2
No files found.
spec/lib/banzai/filter/image_link_filter_spec.rb
View file @
b8cab61f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment