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