Fixed expected output from xmlschema and rfc822

This commit is contained in:
Rafael Rosa Fu 2013-03-29 01:07:47 -04:00
parent 186b68adb0
commit 7879d2e02c
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class TestFilters < Test::Unit::TestCase
context "filters" do context "filters" do
setup do setup do
@filter = JekyllFilter.new @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 end
should "textilize with simple string" do should "textilize with simple string" do
@ -52,11 +52,11 @@ class TestFilters < Test::Unit::TestCase
end end
should "format a time with xmlschema" do 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 end
should "format a time according to RFC-822" do 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 end
should "escape xml with ampersands" do should "escape xml with ampersands" do