summaryrefslogtreecommitdiff
path: root/test/psych/visitors
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-21 17:55:23 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-21 17:55:23 +0000
commit226c6a1bdc6a50af1b6a7c374a1268f51a5bc23c (patch)
treed6325105afc9aefcbd3b3e177f8f036e66195e9f /test/psych/visitors
parent2a1569d6932b843b4b02883685fa05cd3c82d992 (diff)
downloadruby-226c6a1bdc6a50af1b6a7c374a1268f51a5bc23c.tar.gz
* ext/psych/*: update to Psych 2.0.14
* test/psych/*: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/visitors')
-rw-r--r--test/psych/visitors/test_to_ruby.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb
index c13d980468..5c6ba2b397 100644
--- a/test/psych/visitors/test_to_ruby.rb
+++ b/test/psych/visitors/test_to_ruby.rb
@@ -321,6 +321,13 @@ description:
assert_equal %w{ foo foo }, list
assert_equal list[0].object_id, list[1].object_id
end
+
+ def test_mapping_with_str_tag
+ mapping = Nodes::Mapping.new(nil, '!strawberry')
+ mapping.children << Nodes::Scalar.new('foo')
+ mapping.children << Nodes::Scalar.new('bar')
+ assert_equal({'foo' => 'bar'}, mapping.to_ruby)
+ end
end
end
end