summaryrefslogtreecommitdiff
path: root/test/psych/test_deprecated.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-04-24 15:28:24 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-04-24 15:28:24 -0700
commit88bcb83729ebea6a7d4581b3100dfa7a783a9ff7 (patch)
tree1cb9c46264427527c312ae8bb1086f48f87acfff /test/psych/test_deprecated.rb
parentc69c270f19f40e6e7e12905bfeaa03ce977b7ec2 (diff)
downloadpsych-88bcb83729ebea6a7d4581b3100dfa7a783a9ff7.zip
adding deprecated method "tagurize"
Diffstat (limited to 'test/psych/test_deprecated.rb')
-rw-r--r--test/psych/test_deprecated.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb
index c2c8a97..6db7238 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