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