Sha256: 1d29088112f2d2a7ecb6bbb8c0ef3c40f50622358617a7f51949e9abf440e8dd

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/module/nesting.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/module/nesting.rb'


  require 'test/unit'

  class TCModule < Test::Unit::TestCase

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

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

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/test/lib/facet/module/test_nesting.rb