test/test_doctor_command.rb: fix test for Doctor.urls_only_differ_by_case
This commit is contained in:
parent
595ad56a7e
commit
645a2cc664
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue