From 6fe92a3cd6b4116580ff7663180407bc0c38030f Mon Sep 17 00:00:00 2001 From: tenderlove Date: Sat, 3 Jul 2010 00:15:51 +0000 Subject: * ext/psych/lib/psych/visitors/yaml_tree.rb (visit_Time): use Time#nsec to accurately serialize time objects. [ruby-core:29233] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/visitors/test_yaml_tree.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/psych/visitors/test_yaml_tree.rb') diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb index 758cfaed72..ed89e78600 100644 --- a/test/psych/visitors/test_yaml_tree.rb +++ b/test/psych/visitors/test_yaml_tree.rb @@ -54,7 +54,7 @@ module Psych def test_time t = Time.now - assert_in_delta t, Psych.load(Psych.dump(t)), 0.000001 + assert_equal t, Psych.load(Psych.dump(t)) end def test_date -- cgit v1.2.3