Skip to content

Commit 6de93fc

Browse files
committed
Fix ignored test
`test_rewrites_root_relative_urls` is ignored by redefined.
1 parent c725fbd commit 6de93fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/html/pipeline/absolute_source_filter_test.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ def setup
1212
}
1313
end
1414

15-
def test_rewrites_root_relative_urls
15+
def test_rewrites_root_urls
1616
orig = %(<p><img src="/img.png"></p>)
17-
puts AbsoluteSourceFilter.call(orig, @options).to_s
1817
assert_equal "<p><img src=\"#{@image_base_url}/img.png\"></p>",
1918
AbsoluteSourceFilter.call(orig, @options).to_s
2019
end
2120

22-
def test_rewrites_root_relative_urls
21+
def test_rewrites_relative_urls
2322
orig = %(<p><img src="post/img.png"></p>)
2423
assert_equal "<p><img src=\"#{@image_subpage_url}/img.png\"></p>",
2524
AbsoluteSourceFilter.call(orig, @options).to_s

0 commit comments

Comments
 (0)