From 2bb59d542bde13ba8c5874715953be9d4fc88ba7 Mon Sep 17 00:00:00 2001 From: Tom Kirchner Date: Sun, 14 Dec 2008 01:31:09 -0500 Subject: [PATCH] test_post failed if you weren't in UTC-8, so use the current time zone for testing --- test/test_post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_post.rb b/test/test_post.rb index f46dd8ca..f0723cb8 100644 --- a/test/test_post.rb +++ b/test/test_post.rb @@ -81,7 +81,7 @@ class TestPost < Test::Unit::TestCase layouts = {"default" => Layout.new(File.join(File.dirname(__FILE__), *%w[source _layouts]), "simple.html")} p.add_layout(layouts, {"site" => {"posts" => []}}) - assert_equal "<<<

url: /2008/11/21/complex.html
\ndate: Fri Nov 21 00:00:00 -0800 2008
\nid: /2008/11/21/complex

>>>", p.output + assert_equal "<<<

url: /2008/11/21/complex.html
\ndate: #{Time.parse("2008-11-21")}
\nid: /2008/11/21/complex

>>>", p.output end def test_include