summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-10-08 16:13:38 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-10-08 16:13:38 -0700
commit6f5fcb7d4e7388f2ba78f3b0b6b35563fd11135a (patch)
treeb9681274812ac8a1bb192a9763bc920151cc94d7 /test
parent734a4046b5ac58a21559d43d7d44ddfa3a25cfa5 (diff)
downloadpsych-6f5fcb7d4e7388f2ba78f3b0b6b35563fd11135a.zip
testing another date format
Diffstat (limited to 'test')
-rw-r--r--test/visitors/test_to_ruby.rb8
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