* test/ruby/test_module.rb (test_uninitialized_toplevel_constant): test for [ruby-dev:40951].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c0ea75f966
commit
99058e83be
@ -920,4 +920,10 @@ class TestModule < Test::Unit::TestCase
|
||||
y.bar
|
||||
end
|
||||
end
|
||||
|
||||
def test_uninitialized_toplevel_constant
|
||||
bug3123 = '[ruby-dev:40951]'
|
||||
e = assert_raise(NameError) {eval("Bug3123", TOPLEVEL_BINDING)}
|
||||
assert_not_match(/Object::/, e.message, bug3123)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user