We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ad72f8 commit 40743b3Copy full SHA for 40743b3
test/psych/test_hash.rb
@@ -92,6 +92,16 @@ def test_map
92
assert_equal X, x.class
93
end
94
95
+ def test_error_on_same_key
96
+ assert_raises(Psych::Exception) do
97
+ Psych.load <<-EOF
98
+ -
99
+ same_key: 'value'
100
101
+ EOF
102
+ end
103
104
+
105
def test_self_referential
106
@hash['self'] = @hash
107
assert_cycle(@hash)
0 commit comments