Sha256: 030408322a59d1b77683a022d9527eb64ebbd32e80220ed100e931be743c0e0d

Contents?: true

Size: 740 Bytes

Versions: 1

Compression:

Stored size: 740 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/kernel/constant.rb
#
# Extracted Mon Jun 05 08:14:29 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/kernel/constant.rb'


  require 'test/unit'

  class TCKernel < Test::Unit::TestCase

    def test_constant
      c = ::Test::Unit::TestCase.name
      assert_equal( ::Test::Unit::TestCase, constant(c) )
      c = "Test::Unit::TestCase"
      assert_equal( ::Test::Unit::TestCase, constant(c) )
      c = "Unit::TestCase"
      assert_equal( ::Test::Unit::TestCase, Test.constant(c) )
      c = "TestCase"
      assert_equal( ::Test::Unit::TestCase, Test::Unit.constant(c) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.0 test/lib/facets/core/kernel/test_constant.rb