summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-02 09:12:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-02 09:12:07 +0000
commiteee581f9432b7a4d18f51bb09ca384954c91b1e9 (patch)
tree6d27bd19f8a7eee2216c97f6ca96255d6da9ea86 /test/json
parent24bc7af43abf6de550e8f382850ff6492bfb544e (diff)
* test/json/test_json_addition.rb (test_utc_datetime): fixed
timezone offsets. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/json')
-rwxr-xr-xtest/json/test_json_addition.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json/test_json_addition.rb b/test/json/test_json_addition.rb
index d30853a..844cd4f 100755
--- a/test/json/test_json_addition.rb
+++ b/test/json/test_json_addition.rb
@@ -154,9 +154,9 @@ class TC_JSONAddition < Test::Unit::TestCase
assert_equal d, JSON.parse(d.to_json)
d = DateTime.parse(now.utc.to_s) # of = 0
assert_equal d, JSON.parse(d.to_json)
- d = DateTime.civil(2008, 6, 17, 11, 48, 32, 1) # of = 1 / 12 => 1/12
+ d = DateTime.civil(2008, 6, 17, 11, 48, 32, Rational(1,24))
assert_equal d, JSON.parse(d.to_json)
- d = DateTime.civil(2008, 6, 17, 11, 48, 32, 12) # of = 12 / 12 => 12
+ d = DateTime.civil(2008, 6, 17, 11, 48, 32, Rational(12,24))
assert_equal d, JSON.parse(d.to_json)
end
end