ruby-changes:18603
From: tenderlove <ko1@a...>
Date: Sat, 22 Jan 2011 11:18:31 +0900 (JST)
Subject: [ruby-changes:18603] Ruby:r30627 (trunk): fixed a bug in the test suite. Thanks Benoit Daloze!
tenderlove 2011-01-22 11:18:21 +0900 (Sat, 22 Jan 2011) New Revision: 30627 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30627 Log: fixed a bug in the test suite. Thanks Benoit Daloze! [ruby-core:34641] Modified files: trunk/test/psych/test_json_tree.rb Index: test/psych/test_json_tree.rb =================================================================== --- test/psych/test_json_tree.rb (revision 30626) +++ test/psych/test_json_tree.rb (revision 30627) @@ -41,8 +41,9 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/