mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
f6f4534382
constant of the path is not defined but defined on toplevel. [ruby-core:41410] [Bug #5691] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12 lines
298 B
Ruby
12 lines
298 B
Ruby
require 'test/unit'
|
|
|
|
class Test_PathToClass < Test::Unit::TestCase
|
|
require '-test-/path_to_class/path_to_class'
|
|
|
|
def test_path_to_class
|
|
bug5691 = '[ruby-core:41410]'
|
|
assert_raise(ArgumentError, bug5691) {
|
|
Test_PathToClass.path_to_class("Test_PathToClass::Object")
|
|
}
|
|
end
|
|
end
|