diff --git a/test/test_filters.rb b/test/test_filters.rb index 2bb68408..1ebc360b 100644 --- a/test/test_filters.rb +++ b/test/test_filters.rb @@ -37,6 +37,7 @@ class TestFilters < JekyllUnitTest context "filters" do setup do @sample_time = Time.utc(2013, 3, 27, 11, 22, 33) + @timezone_before_test = ENV["TZ"] @filter = make_filter_mock( "timezone" => "UTC", "url" => "http://example.com", @@ -55,6 +56,10 @@ class TestFilters < JekyllUnitTest ] end + teardown do + ENV["TZ"] = @timezone_before_test + end + should "markdownify with simple string" do assert_equal( "
something really simple
\n",