/vendor/gems/facets-2.4.5/test/core/module/test_spacename.rb
Ruby | 14 lines | 10 code | 4 blank | 0 comment | 0 complexity | 061a8357b26fac37f72d949f3803f28a MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/module/spacename.rb'
- require 'test/unit'
- class TestModuleSpaceName < Test::Unit::TestCase
- def test_spacename
- assert_equal( 'Test::Unit', Test::Unit::TestCase.spacename )
- assert_equal( 'Test::Unit', ::Test::Unit::TestCase.spacename )
- assert_equal( '', Test.spacename )
- assert_equal( '', ::Test.spacename )
- end
- end