diff options
Diffstat (limited to 'test/psych/test_yaml.rb')
-rw-r--r-- | test/psych/test_yaml.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index 5c2f6dc3bf..41bb377143 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -14,6 +14,12 @@ class Psych_Unit_Tests < Psych::TestCase Psych.domain_types.clear end + def test_syck_compat + time = Time.utc(2010, 10, 10) + yaml = Psych.dump time + assert_match "2010-10-10 00:00:00.000000000 Z", yaml + end + # [ruby-core:34969] def test_regexp_with_n assert_cycle(Regexp.new('',0,'n')) |