Permalink
Browse files

test_post failed if you weren't in UTC-8, so use the current time zon…

…e for testing
  • Loading branch information...
tjkirch committed Dec 14, 2008
1 parent f57bb07 commit 2bb59d542bde13ba8c5874715953be9d4fc88ba7
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test_post.rb
View
@@ -81,7 +81,7 @@ def test_data
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

0 comments on commit 2bb59d5

Please sign in to comment.