2010-03-29 18:25:57 +00:00
|
|
|
require_relative 'helper'
|
2010-03-28 21:49:37 +00: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
|