Sha256: 95b754474d8fefc7842b260cf9590834c82da1fa5e6db2705cb40a14e581ea3c

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

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

require 'facet/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.0.3 packages/core/test/lib/facet/kernel/test_constant.rb