fixed a bug in the test suite. Thanks Benoit Daloze! [ruby-core:34641]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2011-01-22 02:18:21 +00:00
Родитель 8dd3a4af66
Коммит cab95ab712
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -41,8 +41,9 @@ module Psych
end
def test_time
time = Time.new(2010, 10, 10).utc
assert_equal "{\"a\": \"2010-10-10 07:00:00.000000000Z\"}\n", Psych.to_json({'a' => time })
time = Time.utc(2010, 10, 10)
assert_equal "{\"a\": \"2010-10-10 00:00:00.000000000Z\"}\n",
Psych.to_json({'a' => time })
end
def test_datetime