Sha256: 011f07a4ef801eb51353450d603a3f012b7ee0ecea6fde3569bb59e685a8bbbc

Contents?: true

Size: 479 Bytes

Versions: 16

Compression:

Stored size: 479 Bytes

Contents

require 'facets/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

16 entries across 16 versions & 1 rubygems

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