diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-03-23 10:58:19 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-03-27 10:12:18 +0900 |
commit | 2cd35187087e4594f84462c0d583c2616e93e8c1 (patch) | |
tree | 5c915f5e6c74897b7496fe6356be0a1aad73b6df /test | |
parent | f6e4d772ec439b47077a18920cbb4bcb7400c5f1 (diff) | |
download | psych-2cd35187087e4594f84462c0d583c2616e93e8c1.zip |
Removed deprecated yaml_initialize method
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_deprecated.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb index d09ff82..3961e36 100644 --- a/test/psych/test_deprecated.rb +++ b/test/psych/test_deprecated.rb @@ -49,30 +49,6 @@ module Psych assert_nil qe.value end - class YamlInit - attr_reader :name - attr_reader :value - - def initialize - @name = 'hello!!' - @value = 'Friday!' - end - - def yaml_initialize tag, vals - vals.each { |ivar, val| instance_variable_set "@#{ivar}", 'TGIF!' } - end - end - - def test_yaml_initialize - hash = { :yi => YamlInit.new } - hash2 = Psych.load Psych.dump hash - yi = hash2[:yi] - - assert_equal 'TGIF!', yi.name - assert_equal 'TGIF!', yi.value - assert_instance_of YamlInit, yi - end - class YamlInitAndInitWith attr_reader :name attr_reader :value |