summaryrefslogtreecommitdiff
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-07 08:57:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-07 08:57:42 +0000
commit881891fb2f2762c321ba128f50d1717ce5b1fc48 (patch)
tree77271a0481044cb391518c6a722a5da45ffa8204 /test/ruby/test_module.rb
parente50c05f7f623404aaa1772c4421f4983527e239f (diff)
* test/-ext-/symbol/test_inadvertent_creation.rb: moved tests from
test_module.rb and test_symbol.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 4edcb71ec5..b3b3f676c2 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -507,9 +507,6 @@ class TestModule < Test::Unit::TestCase
def test_const_get_invalid_name
c1 = Class.new
assert_raise(NameError) { c1.const_defined?(:foo) }
- name = "gadzooks"
- assert !Symbol.all_symbols.any? {|sym| sym.to_s == name}
- assert_raise(NameError) { c1.const_defined?(name) }
bug5084 = '[ruby-dev:44200]'
assert_raise(TypeError, bug5084) { c1.const_defined?(1) }
end