1
0
Fork 0
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:
nobu 2014-11-17 18:40:50 +00:00
parent 358840fa7d
commit 88212206f6

View file

@ -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