summaryrefslogtreecommitdiff
path: root/test/-ext-/symbol
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-17 18:40:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-17 18:40:50 +0000
commit88212206f60f5d88398079ee7e8f8681c8abc376 (patch)
tree1768095546ba8f9ab468b2bcc1d5aca2a44f5b99 /test/-ext-/symbol
parent358840fa7d510010ef1f775be567ba2268119e17 (diff)
downloadruby-88212206f60f5d88398079ee7e8f8681c8abc376.tar.gz
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
Diffstat (limited to 'test/-ext-/symbol')
-rw-r--r--test/-ext-/symbol/test_inadvertent_creation.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/-ext-/symbol/test_inadvertent_creation.rb b/test/-ext-/symbol/test_inadvertent_creation.rb
index 465f032bbb..9c5fa04407 100644
--- a/test/-ext-/symbol/test_inadvertent_creation.rb
+++ b/test/-ext-/symbol/test_inadvertent_creation.rb
@@ -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