summaryrefslogtreecommitdiffstats
path: root/test/json
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 16:25:53 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 16:25:53 +0000
commita2c8c29f462ba65041e77714f43b1c8ab960f7f7 (patch)
tree19ae53ec96023d4dd8f2bba30f93d0d962947e68 /test/json
parent84e0733bdcca1d51f51c1be42b24773f3c918ddc (diff)
downloadruby-a2c8c29f462ba65041e77714f43b1c8ab960f7f7.tar.gz
ruby-a2c8c29f462ba65041e77714f43b1c8ab960f7f7.tar.xz
ruby-a2c8c29f462ba65041e77714f43b1c8ab960f7f7.zip
* test/json/test_json_addition.rb (test_core): do not use Time.now
because JSON can't hold nsec. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/json')
-rwxr-xr-xtest/json/test_json_addition.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/json/test_json_addition.rb b/test/json/test_json_addition.rb
index 2ae0ce47c..e8ae41525 100755
--- a/test/json/test_json_addition.rb
+++ b/test/json/test_json_addition.rb
@@ -112,7 +112,7 @@ EOT
end
def test_core
- t = Time.now
+ t = Time.at(1198254128, 895990)
assert_equal t, JSON(JSON(t))
d = Date.today
assert_equal d, JSON(JSON(d))