diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-24 22:27:55 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-24 22:27:55 +0000 |
commit | 63578c725c481abf246b1c1e5b4ddf2942cb5508 (patch) | |
tree | 193ac4b5a2453a8a69b7dc34ba77d3f647017fb4 /test/psych | |
parent | 38297f330b41702e07460d18e6fac3f989a06a9a (diff) | |
download | ruby-63578c725c481abf246b1c1e5b4ddf2942cb5508.tar.gz |
* ext/psych/lib/psych/deprecated.rb: adding deprecated tagurize method
* test/psych/test_deprecated.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych')
-rw-r--r-- | test/psych/test_deprecated.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb index c2c8a972c3..6db7238b0c 100644 --- a/test/psych/test_deprecated.rb +++ b/test/psych/test_deprecated.rb @@ -181,5 +181,11 @@ module Psych assert_equal [["x-private:foo", "bar"]], types end + + def test_tagurize + assert_nil Psych.tagurize nil + assert_equal Psych, Psych.tagurize(Psych) + assert_equal 'tag:yaml.org,2002:foo', Psych.tagurize('foo') + end end end |