summaryrefslogtreecommitdiff
path: root/test/psych/test_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_class.rb')
-rw-r--r--test/psych/test_class.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/psych/test_class.rb b/test/psych/test_class.rb
new file mode 100644
index 0000000000..02c4c1ee90
--- /dev/null
+++ b/test/psych/test_class.rb
@@ -0,0 +1,17 @@
+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