assert instead of refuting

This commit is contained in:
Ashwin Maroli 2016-11-04 01:17:54 +05:30
parent 894d2a0415
commit 9192e66b7b
1 changed files with 2 additions and 2 deletions

View File

@ -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