mirror of
https://github.com/ruby/ruby.git
synced 2025-09-24 13:03:57 +02:00
* 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
1 changed files with 6 additions and 0 deletions
|
@ -920,4 +920,10 @@ class TestModule < Test::Unit::TestCase
|
||||||
y.bar
|
y.bar
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue