1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
require 'psych/helper' module Psych class TestClass < TestCase def test_cycle assert_raises(::TypeError) do assert_cycle(TestClass) end end def test_dump assert_raises(::TypeError) do Psych.dump TestClass end end end end