summaryrefslogtreecommitdiff
path: root/test/psych
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-29 18:10:24 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-29 18:10:24 +0000
commite0c6dd91a450a47b701fb0a9d7fd908814651641 (patch)
tree88e035756faf814af1845afc049c3d5ba98a6ec1 /test/psych
parent887ff70f23e20081b424d1986988e005f8cce312 (diff)
* 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
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/test_string.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/psych/test_string.rb b/test/psych/test_string.rb
index 025ef9564ee..84326da8d31 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 '+.'