diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-03-07 20:17:48 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-03-27 10:10:44 +0900 |
commit | 4ad0834639b054f5b7143484cf35057736d44b46 (patch) | |
tree | bfb7ec583528765bcd44d5e89651dd1a9d4e4766 /test | |
parent | 5703ff2ae6e2aded251b95e9a6c19a8307b1165a (diff) | |
download | psych-4ad0834639b054f5b7143484cf35057736d44b46.zip |
Removed Psyych.add_ruby_type.
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_deprecated.rb | 12 |
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 } |