Failing test: abbreviated post dates are no longer read.

This is a regression introduced by https://github.com/jekyll/jekyll/pull/5609.
This commit is contained in:
Parker Moore 2017-03-01 21:38:55 -05:00
parent 0300a7017b
commit 8a0c0727ea
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
foo: barj
---
I have an abbreviated date. Instead of "2017-02-05", I am instead "2017-2-5".
Zeros have always seemed superfluous.

View File

@ -11,7 +11,7 @@ class TestGeneratedSite < JekyllUnitTest
end
should "ensure post count is as expected" do
assert_equal 51, @site.posts.size
assert_equal 52, @site.posts.size
end
should "insert site.posts into the index" do
@ -48,6 +48,11 @@ class TestGeneratedSite < JekyllUnitTest
assert_exist dest_dir("dynamic_file.php")
end
should "include a post with a abbreviated dates" do
refute_nil -1, @site.posts.index { |post| post.relative_path == "_posts/2017-2-5-i-dont-like-zeroes.md" }
assert_exist dest_dir("2017", "02", "05", "i-dont-like-zeroes.html")
end
should "print a nice list of static files" do
time_regexp = "\\d+:\\d+"
#