mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-15 17:15:00 -05:00
Handle nil argument to Jekyll.sanitized_path (#8415)
Merge pull request 8415
This commit is contained in:
@@ -38,6 +38,10 @@ class TestPathSanitization < JekyllUnitTest
|
||||
Jekyll.sanitized_path(source_dir, "/#{subdir}/#{file_path}")
|
||||
end
|
||||
|
||||
should "handle nil questionable_path" do
|
||||
assert_equal source_dir, Jekyll.sanitized_path(source_dir, nil)
|
||||
end
|
||||
|
||||
if Jekyll::Utils::Platforms.really_windows?
|
||||
context "on Windows with absolute path" do
|
||||
setup do
|
||||
|
||||
Reference in New Issue
Block a user