summaryrefslogtreecommitdiff
path: root/test/psych/test_class.rb
blob: 8fd4ad0952ce1749af6bc6e6c6d49ebcc7800bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'psych/helper'

module Psych
  class TestClass < TestCase
    def test_cycle_anonymous_class
      assert_raises(::TypeError) do
        assert_cycle(Class.new)
      end
    end

    def test_cycle
      assert_cycle(TestClass)
    end

    def test_dump
      Psych.dump TestClass
    end
  end
end