mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
18 lines
288 B
Ruby
18 lines
288 B
Ruby
![]() |
require 'test/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
|