summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-29 11:11:10 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-29 11:11:10 -0700
commit2ffd057a29dc4fdec0f11697af260c4cfb4e3d84 (patch)
treeb3717c2dfd19d0bfddfac819e2fe511c0f25e0ea /test
parent24b0860c85d4cb9b84876fc426c0fbff8ba36916 (diff)
downloadpsych-2ffd057a29dc4fdec0f11697af260c4cfb4e3d84.zip
* 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 Fixes #166
Diffstat (limited to 'test')
-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 025ef95..84326da 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 '+.'