From 7879d2e02c3fd851f7a4de37b4279246617eb173 Mon Sep 17 00:00:00 2001 From: Rafael Rosa Fu Date: Fri, 29 Mar 2013 01:07:47 -0400 Subject: [PATCH] Fixed expected output from xmlschema and rfc822 --- test/test_filters.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_filters.rb b/test/test_filters.rb index 24551bb3..41bd242c 100644 --- a/test/test_filters.rb +++ b/test/test_filters.rb @@ -13,7 +13,7 @@ class TestFilters < Test::Unit::TestCase context "filters" do setup do @filter = JekyllFilter.new - @sample_time = Time.parse "2013-03-27T11:22:33+00:00" + @sample_time = Time.utc(2013, 03, 27, 11, 22, 33) end should "textilize with simple string" do @@ -52,11 +52,11 @@ class TestFilters < Test::Unit::TestCase end should "format a time with xmlschema" do - assert_equal "2013-03-27T11:22:33+00:00", @filter.date_to_xmlschema(@sample_time) + assert_equal "2013-03-27T11:22:33Z", @filter.date_to_xmlschema(@sample_time) end should "format a time according to RFC-822" do - assert_equal "Wed, 27 Mar 2013 11:22:33 +0000", @filter.date_to_rfc822(@sample_time) + assert_equal "Wed, 27 Mar 2013 11:22:33 -0000", @filter.date_to_rfc822(@sample_time) end should "escape xml with ampersands" do