summaryrefslogtreecommitdiff
path: root/test/psych/visitors/test_yaml_tree.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-29 04:30:30 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-29 04:30:30 +0000
commit0a5d4d29e2404778d38410ba309443fa6e34ab03 (patch)
tree8c68b2788d2b41ef8575fa94d1098e12e79bad2f /test/psych/visitors/test_yaml_tree.rb
parent6c4a07dfa77fc9017adba958cf6399c1f1e6af33 (diff)
* test/psych/visitors/test_to_ruby.rb: switching to assert_in_delta
* test/psych/visitors/test_yaml_tree.rb: switching to assert_in_delta git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/visitors/test_yaml_tree.rb')
-rw-r--r--test/psych/visitors/test_yaml_tree.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb
index a0a2336..7dab85d 100644
--- a/test/psych/visitors/test_yaml_tree.rb
+++ b/test/psych/visitors/test_yaml_tree.rb
@@ -45,7 +45,8 @@ module Psych
end
def test_time
- assert_cycle Time.now
+ t = Time.now
+ assert_in_delta t, Psych.load(Psych.dump(t)), 0.000001
end
def test_date