test_post failed if you weren't in UTC-8, so use the current time zone for testing

This commit is contained in:
Tom Kirchner 2008-12-14 01:31:09 -05:00
parent f57bb0720e
commit 2bb59d542b
1 changed files with 1 additions and 1 deletions

View File

@ -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 "<<< <p>url: /2008/11/21/complex.html<br />\ndate: Fri Nov 21 00:00:00 -0800 2008<br />\nid: /2008/11/21/complex</p> >>>", p.output
assert_equal "<<< <p>url: /2008/11/21/complex.html<br />\ndate: #{Time.parse("2008-11-21")}<br />\nid: /2008/11/21/complex</p> >>>", p.output
end
def test_include