test_post failed if you weren't in UTC-8, so use the current time zone for testing
This commit is contained in:
parent
f57bb0720e
commit
2bb59d542b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue