summaryrefslogtreecommitdiff
path: root/test/psych/visitors/test_yaml_tree.rb
diff options
context:
space:
mode:
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 a0a2336e75..7dab85dc5b 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