Sha256: 33b33df2664996ffd723b66f00a1ff7f0015689399088d0fd0f10f3c6ae9e3bc

Contents?: true

Size: 571 Bytes

Versions: 9

Compression:

Stored size: 571 Bytes

Contents

require 'psych/helper'

module Psych
  class TestClass < TestCase
    module Foo
    end

    def test_cycle_anonymous_class
      assert_raises(::TypeError) do
        assert_cycle(Class.new)
      end
    end

    def test_cycle_anonymous_module
      assert_raises(::TypeError) do
        assert_cycle(Module.new)
      end
    end

    def test_cycle
      assert_cycle(TestClass)
    end

    def test_dump
      Psych.dump TestClass
    end

    def test_cycle_module
      assert_cycle(Foo)
    end

    def test_dump_module
      Psych.dump Foo
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
psych-1.3.4 test/psych/test_class.rb
psych-1.3.3 test/psych/test_class.rb
psych-1.3.2 test/psych/test_class.rb
psych-1.3.1 test/psych/test_class.rb
psych-1.3.0 test/psych/test_class.rb
psych-1.2.2 test/psych/test_class.rb
psych-1.2.2.rc1 test/psych/test_class.rb
psych-1.2.1 test/psych/test_class.rb
psych-1.2.0 test/psych/test_class.rb