summaryrefslogtreecommitdiff
path: root/test/visitors/test_to_ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/visitors/test_to_ruby.rb')
-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