Skip to content
Snippets Groups Projects
Commit 2450916d authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Fix parse_gollum_tags matcher

parent ac2c8605
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -69,7 +69,7 @@ module MarkdownMatchers
# GollumTagsFilter
matcher :parse_gollum_tags do
def have_image(src)
have_css("img[src*='#{src}']")
have_css("img[src$='#{src}']")
end
 
set_default_markdown_messages
Loading
Loading
@@ -79,7 +79,7 @@ module MarkdownMatchers
expect(actual).to have_link('link-text', href: 'linked-resource')
expect(actual).to have_link('http://example.com', href: 'http://example.com')
expect(actual).to have_link('link-text', href: 'http://example.com/pdfs/gollum.pdf')
expect(actual).to have_image('/namespace1/gitlabhq/wikis/images/example.jpg')
expect(actual).to have_image('/gitlabhq/wikis/images/example.jpg')
expect(actual).to have_image('http://example.com/images/example.jpg')
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