summaryrefslogtreecommitdiff
path: root/test/psych/test_set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_set.rb')
-rw-r--r--test/psych/test_set.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/psych/test_set.rb b/test/psych/test_set.rb
index 87944d839e..b4968d3425 100644
--- a/test/psych/test_set.rb
+++ b/test/psych/test_set.rb
@@ -46,5 +46,12 @@ bar: baz
@set['self'] = @set
assert_cycle(@set)
end
+
+ def test_stringify_names
+ @set[:symbol] = :value
+
+ assert_match(/^:symbol: :value/, Psych.dump(@set))
+ assert_match(/^symbol: :value/, Psych.dump(@set, stringify_names: true))
+ end
end
end