We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9234e2 + 6de93fc commit c975ca8Copy full SHA for c975ca8
test/html/pipeline/absolute_source_filter_test.rb
@@ -12,14 +12,13 @@ def setup
12
}
13
end
14
15
- def test_rewrites_root_relative_urls
+ def test_rewrites_root_urls
16
orig = %(<p><img src="/img.png"></p>)
17
- puts AbsoluteSourceFilter.call(orig, @options).to_s
18
assert_equal "<p><img src=\"#{@image_base_url}/img.png\"></p>",
19
AbsoluteSourceFilter.call(orig, @options).to_s
20
21
22
+ def test_rewrites_relative_urls
23
orig = %(<p><img src="post/img.png"></p>)
24
assert_equal "<p><img src=\"#{@image_subpage_url}/img.png\"></p>",
25
0 commit comments