fedora-migrator /vendor/gems/facets-2.4.5/test/core/kernel/test_constant.rb

Language Ruby Lines 19
MD5 Hash ec9c6dd193d5ad9eb84a27109495068a Estimated Cost $306 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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
Back to Top