summaryrefslogtreecommitdiff
path: root/test/psych/test_deprecated.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-16 20:31:59 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-16 20:31:59 +0000
commit5b5bbdbb35098e8e2dabe7af5d31526a54dc8bbd (patch)
treeb13a953eeabb87fbce34ecb67818b24164ca8298 /test/psych/test_deprecated.rb
parent2db7b7f3fe7de2b518d46ea11c26875f86d26136 (diff)
* ext/psych/lib/psych/core_ext.rb (yaml_as): supporting deprecated
"yaml_as" method * ext/syck/lib/syck/tag.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/test_deprecated.rb')
-rw-r--r--test/psych/test_deprecated.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb
index e77d18c..41106ff 100644
--- a/test/psych/test_deprecated.rb
+++ b/test/psych/test_deprecated.rb
@@ -139,5 +139,13 @@ module Psych
assert_equal 'some string', coder.scalar
assert_equal :scalar, coder.type
end
+
+ class YamlAs
+ yaml_as 'helloworld'
+ end
+
+ def test_yaml_as
+ assert_match(/helloworld/, Psych.dump(YamlAs.new))
+ end
end
end