test/test_doctor_command.rb: fix test for Doctor.urls_only_differ_by_case

This commit is contained in:
Parker Moore 2015-12-14 20:59:52 -08:00
parent 595ad56a7e
commit 645a2cc664
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class TestDoctorCommand < JekyllUnitTest
"destination" => dest_dir
}))
@site.process
output = capture_stderr do
output = capture_stderr do
ret = Jekyll::Commands::Doctor.urls_only_differ_by_case(@site)
assert_equal false, ret
end
@ -26,11 +26,11 @@ class TestDoctorCommand < JekyllUnitTest
"destination" => dest_dir
}))
@site.process
output = capture_stderr do
output = capture_stderr do
ret = Jekyll::Commands::Doctor.urls_only_differ_by_case(@site)
assert_equal true, ret
end
assert_equal "\e[33m Warning: The following URLs only differ by case. On a case-insensitive file system one of the URLs will be overwritten by the other: #{dest_dir}/about/index.html, #{dest_dir}/About/index.html\e[0m\n", output
assert_includes output, "Warning: The following URLs only differ by case. On a case-insensitive file system one of the URLs will be overwritten by the other: #{dest_dir}/about/index.html, #{dest_dir}/About/index.html"
end
end
end