Sha256: 8da549b7f174f02e91d54e7bb3628ac61b8e6ab7f985c7d5e84888e21b21291e

Contents?: true

Size: 326 Bytes

Versions: 15

Compression:

Stored size: 326 Bytes

Contents

require 'facets/module/nesting.rb'
require 'test/unit'

class TestModuleNesting < Test::Unit::TestCase

  module M
    module N
      class C
        def n
          self.class.nesting
        end
      end
    end
  end

  def test_nesting
    assert_equal( [TestModuleNesting, M, M::N, M::N::C], M::N::C.new.n )
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/module/test_nesting.rb
facets-2.8.3 test/core/module/test_nesting.rb
facets-2.8.2 test/core/module/test_nesting.rb
facets-2.8.1 test/core/module/test_nesting.rb
facets-2.8.0 test/core/module/test_nesting.rb
facets-2.7.0 test/core/module/test_nesting.rb
facets-2.6.0 test/core/module/test_nesting.rb
facets-2.4.1 test/module/test_nesting.rb
facets-2.4.4 test/core/module/test_nesting.rb
facets-2.4.2 test/core/module/test_nesting.rb
facets-2.4.3 test/core/module/test_nesting.rb
facets-2.5.1 test/core/module/test_nesting.rb
facets-2.4.5 test/core/module/test_nesting.rb
facets-2.5.0 test/core/module/test_nesting.rb
facets-2.5.2 test/core/module/test_nesting.rb