From 88212206f60f5d88398079ee7e8f8681c8abc376 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 17 Nov 2014 18:40:50 +0000 Subject: [PATCH] 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 --- test/-ext-/symbol/test_inadvertent_creation.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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