summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-03-07 20:17:48 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-03-27 10:10:44 +0900
commit4ad0834639b054f5b7143484cf35057736d44b46 (patch)
treebfb7ec583528765bcd44d5e89651dd1a9d4e4766 /test
parent5703ff2ae6e2aded251b95e9a6c19a8307b1165a (diff)
downloadpsych-4ad0834639b054f5b7143484cf35057736d44b46.tar.gz
Removed Psyych.add_ruby_type.
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_deprecated.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb
index 96e794d..abb6cae 100644
--- a/test/psych/test_deprecated.rb
+++ b/test/psych/test_deprecated.rb
@@ -122,18 +122,6 @@ module Psych
assert_match(/helloworld/, Psych.dump(YamlAs.new))
end
- def test_ruby_type
- types = []
- appender = lambda { |*args| types << args }
-
- Psych.add_ruby_type('foo', &appender)
- Psych.load <<-eoyml
-- !ruby.yaml.org,2002/foo bar
- eoyml
-
- assert_equal [["tag:ruby.yaml.org,2002:foo", "bar"]], types
- end
-
def test_private_type
types = []
Psych.add_private_type('foo') { |*args| types << args }