assert instead of refuting
This commit is contained in:
parent
894d2a0415
commit
9192e66b7b
|
@ -374,7 +374,7 @@ class TestFilters < JekyllUnitTest
|
||||||
"url" => "http://example.com",
|
"url" => "http://example.com",
|
||||||
"baseurl" => "/base"
|
"baseurl" => "/base"
|
||||||
})
|
})
|
||||||
refute_equal "http://example.com/base//", filter.absolute_url(page_url)
|
assert_equal "http://example.com/base/", filter.absolute_url(page_url)
|
||||||
end
|
end
|
||||||
|
|
||||||
should "not append a forward slash if input is '/' and nil 'baseurl'" do
|
should "not append a forward slash if input is '/' and nil 'baseurl'" do
|
||||||
|
@ -383,7 +383,7 @@ class TestFilters < JekyllUnitTest
|
||||||
"url" => "http://example.com",
|
"url" => "http://example.com",
|
||||||
"baseurl" => nil
|
"baseurl" => nil
|
||||||
})
|
})
|
||||||
refute_equal "http://example.com//", filter.absolute_url(page_url)
|
assert_equal "http://example.com/", filter.absolute_url(page_url)
|
||||||
end
|
end
|
||||||
|
|
||||||
should "normalize international URLs" do
|
should "normalize international URLs" do
|
||||||
|
|
Loading…
Reference in New Issue