summaryrefslogtreecommitdiff
path: root/test/psych/test_class.rb
blob: 02c4c1ee9044fe7af378a89f63b1d6f5ab50ca01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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