Sha256: 098039fb7e5cb2bbda44d520bd631334b0b8f1c22a2b8da2081e535ac55882ee

Contents?: true

Size: 574 Bytes

Versions: 27

Compression:

Stored size: 574 Bytes

Contents

require_relative '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

27 entries across 27 versions & 2 rubygems

Version Path
psych-2.0.17-java test/psych/test_class.rb
psych-2.0.17 test/psych/test_class.rb
psych-2.0.16-java test/psych/test_class.rb
psych-2.0.16 test/psych/test_class.rb
psych-2.0.15-java test/psych/test_class.rb
psych-2.0.15 test/psych/test_class.rb
psych-2.0.14-java test/psych/test_class.rb
psych-2.0.14 test/psych/test_class.rb
psych-shopifork-2.0.13 test/psych/test_class.rb
psych-2.0.14.pre1-java test/psych/test_class.rb
psych-2.0.13 test/psych/test_class.rb
psych-2.0.12 test/psych/test_class.rb
psych-2.0.11 test/psych/test_class.rb
psych-2.0.10 test/psych/test_class.rb
psych-2.0.9 test/psych/test_class.rb
psych-2.0.8 test/psych/test_class.rb
psych-2.0.7 test/psych/test_class.rb
psych-2.0.6 test/psych/test_class.rb
psych-shopifork-2.0.5 test/psych/test_class.rb
psych-2.0.5 test/psych/test_class.rb