From 1e7dbcaaff7769b7a6df816ca005205824469683 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 22 Jul 2013 14:37:51 +0200 Subject: [PATCH] 1.8.7 doesn't support Time.new(*args), so use Time.parse instead --- test/test_excerpt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_excerpt.rb b/test/test_excerpt.rb index 48588d4f..a72d1bd2 100644 --- a/test/test_excerpt.rb +++ b/test/test_excerpt.rb @@ -23,7 +23,7 @@ class TestExcerpt < Test::Unit::TestCase should "contain the proper page data to mimick the post liquid" do assert_equal "Post Excerpt with Layout", @excerpt.to_liquid["title"] assert_equal "/bar/baz/z_category/2013/07/22/post-excerpt-with-layout.html", @excerpt.to_liquid["url"] - assert_equal Time.new(2013, 07, 22), @excerpt.to_liquid["date"] + assert_equal Time.parse("2013-07-22"), @excerpt.to_liquid["date"] assert_equal %w[bar baz z_category], @excerpt.to_liquid["categories"] assert_equal %w[first second third jekyllrb.com], @excerpt.to_liquid["tags"] assert_equal "_posts/2013-07-22-post-excerpt-with-layout.markdown", @excerpt.to_liquid["path"]