From e0c6dd91a450a47b701fb0a9d7fd908814651641 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Tue, 29 Oct 2013 18:10:24 +0000 Subject: * ext/psych/lib/psych/visitors/yaml_tree.rb: string subclasses should not be considered to be binary. Fixes Psych / GH 166 https://github.com/tenderlove/psych/issues/166 * test/psych/test_string.rb: test for fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/test_string.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/psych/test_string.rb b/test/psych/test_string.rb index 025ef9564e..84326da8d3 100644 --- a/test/psych/test_string.rb +++ b/test/psych/test_string.rb @@ -20,6 +20,11 @@ module Psych assert_match(/---\s*"/, yaml) end + def test_cycle_x + str = X.new 'abc' + assert_cycle str + end + def test_dash_dot assert_cycle '-.' assert_cycle '+.' -- cgit v1.2.3