TestFilters: adjust array size to ignore symlinks

Adjust the size of grouped-items array as it won't include symlinked
pages in Windows.
This commit is contained in:
Ashwin Maroli 2016-11-02 12:54:47 +05:30
parent 257e60b9a7
commit e6b9dd1cc1
1 changed files with 6 additions and 2 deletions

View File

@ -575,7 +575,9 @@ class TestFilters < JekyllUnitTest
g["items"].is_a?(Array),
"The list of grouped items for 'default' is not an Array."
)
assert_equal 5, g["items"].size
# adjust array.size to ignore symlinked page in Windows
qty = Utils::Platforms.really_windows? ? 4 : 5
assert_equal qty, g["items"].size
when "nil"
assert(
g["items"].is_a?(Array),
@ -587,7 +589,9 @@ class TestFilters < JekyllUnitTest
g["items"].is_a?(Array),
"The list of grouped items for '' is not an Array."
)
assert_equal 15, g["items"].size
# adjust array.size to ignore symlinked page in Windows
qty = Utils::Platforms.really_windows? ? 14 : 15
assert_equal qty, g["items"].size
end
end
end