2010-03-29 22:25:57 +04:00
|
|
|
require_relative 'helper'
|
2010-03-29 01:49:37 +04:00
|
|
|
|
|
|
|
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
|