summaryrefslogtreecommitdiff
path: root/test/psych/helper.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-03 21:31:43 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-03 21:31:43 +0000
commit1c60db55ac07b238d9d4e1443f5b6f8dd1fa9da0 (patch)
tree228a5a5273452b8a04ae4d07cb14198342cc646f /test/psych/helper.rb
parentbd3b0d470c12fbdb48efcdb310d00eaa0fea84e5 (diff)
* ext/psych/lib/psych.rb: calling `yaml` rather than `to_yaml`.
* ext/psych/lib/psych/nodes/node.rb: Rename `to_yaml` to just `yaml` in order to avoid YAML::ENGINE switching from replacing this method. * test/psych/helper.rb: fix tests for method name change. * test/psych/test_document.rb: ditto * test/psych/visitors/test_emitter.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/helper.rb')
-rw-r--r--test/psych/helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/helper.rb b/test/psych/helper.rb
index fd23c3be07..f5800303fd 100644
--- a/test/psych/helper.rb
+++ b/test/psych/helper.rb
@@ -33,7 +33,7 @@ module Psych
def assert_cycle( obj )
v = Visitors::YAMLTree.new
v << obj
- assert_equal(obj, Psych.load(v.tree.to_yaml))
+ assert_equal(obj, Psych.load(v.tree.yaml))
assert_equal( obj, Psych::load(Psych.dump(obj)))
assert_equal( obj, Psych::load( obj.psych_to_yaml ) )
end