summaryrefslogtreecommitdiff
path: root/test/psych/test_deprecated.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-16 20:27:51 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-16 20:27:51 +0000
commit2db7b7f3fe7de2b518d46ea11c26875f86d26136 (patch)
tree063260cf9c6da1074cbf3d7413b173206b5cb8f5 /test/psych/test_deprecated.rb
parent039219b2c978641d96fe28ba451148b0425ffd4e (diff)
* ext/psych/lib/psych/coder.rb (scalar): supporting deprecated methods
* ext/psych/lib/psych/deprecated.rb: supporting deprecated to_yaml_properties method git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27364 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 7e36daa..e77d18c 100644
--- a/test/psych/test_deprecated.rb
+++ b/test/psych/test_deprecated.rb
@@ -131,5 +131,13 @@ module Psych
assert_equal 'TGIF!', yi.value
assert_instance_of YamlInitAndInitWith, yi
end
+
+ def test_coder_scalar
+ coder = Psych::Coder.new 'foo'
+ coder.scalar('tag', 'some string', :plain)
+ assert_equal 'tag', coder.tag
+ assert_equal 'some string', coder.scalar
+ assert_equal :scalar, coder.type
+ end
end
end