diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-16 20:31:59 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-16 20:31:59 +0000 |
commit | 5b5bbdbb35098e8e2dabe7af5d31526a54dc8bbd (patch) | |
tree | b13a953eeabb87fbce34ecb67818b24164ca8298 /test/psych | |
parent | 2db7b7f3fe7de2b518d46ea11c26875f86d26136 (diff) | |
download | ruby-5b5bbdbb35098e8e2dabe7af5d31526a54dc8bbd.tar.gz |
* 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')
-rw-r--r-- | test/psych/test_deprecated.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb index e77d18c10c..41106ffcfd 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 |