summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-22 02:18:21 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-22 02:18:21 +0000
commitcab95ab7126e69b6b461c38a342194f833512439 (patch)
tree9a3df693b980d577af1252e31513f79cd15a5e7e /test
parent8dd3a4af668cd92245af86206371d3d2e9619571 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_json_tree.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/psych/test_json_tree.rb b/test/psych/test_json_tree.rb
index 5fcb0d6a37..423a528b81 100644
--- a/test/psych/test_json_tree.rb
+++ b/test/psych/test_json_tree.rb
@@ -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