diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-10-08 16:13:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-10-08 16:13:38 -0700 |
commit | 6f5fcb7d4e7388f2ba78f3b0b6b35563fd11135a (patch) | |
tree | b9681274812ac8a1bb192a9763bc920151cc94d7 /test/visitors/test_to_ruby.rb | |
parent | 734a4046b5ac58a21559d43d7d44ddfa3a25cfa5 (diff) | |
download | psych-6f5fcb7d4e7388f2ba78f3b0b6b35563fd11135a.zip |
testing another date format
Diffstat (limited to 'test/visitors/test_to_ruby.rb')
-rw-r--r-- | test/visitors/test_to_ruby.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/visitors/test_to_ruby.rb b/test/visitors/test_to_ruby.rb index 677b8f5..f993c49 100644 --- a/test/visitors/test_to_ruby.rb +++ b/test/visitors/test_to_ruby.rb @@ -11,10 +11,14 @@ module Psych @visitor = ToRuby.new end + def test_awesome + Psych.load('1900-01-01T00:00:00+00:00') + end + def test_legacy_struct - foo = Struct.new('Foo', :bar) + foo = Struct.new('AWESOME', :bar) assert_equal foo.new('baz'), Psych.load(<<-eoyml) -!ruby/struct:Foo +!ruby/struct:AWESOME bar: baz eoyml end |