mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_inadvertent_creation.rb: split test
* test/-ext-/symbol/test_inadvertent_creation.rb: split test_module_const_defined? from test_module_const_get, and assertion for the latter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
358840fa7d
commit
88212206f6
1 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,13 @@ module Test_Symbol
|
|||
cl = Class.new
|
||||
name = noninterned_name("A")
|
||||
|
||||
assert_not_interned_error(cl, :const_get, name, Feature5072)
|
||||
end
|
||||
|
||||
def test_module_const_defined?
|
||||
cl = Class.new
|
||||
name = noninterned_name("A")
|
||||
|
||||
assert_not_interned_false(cl, :const_defined?, name, Feature5072)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue