summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-27 16:18:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-27 16:18:54 +0000
commit5c815b733d90a82d0d708d836c9a98c9704d8ad4 (patch)
tree40b0917d3e90c51ef2c3466167c1ce774778df7b /test
parenta99ef204009aed23aac183076c7724bd95a1e8a3 (diff)
* test/ruby/test_symbol.rb (test_no_inadvertent_symbol_creation):
remove an assertion depending on default respond_to_missing?. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_symbol.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index f19ef590e4..35cbb85bf5 100644
--- a/test/ruby/test_symbol.rb
+++ b/test/ruby/test_symbol.rb
@@ -160,10 +160,15 @@ class TestSymbol < Test::Unit::TestCase
def test_no_inadvertent_symbol_creation
feature5072 = '[ruby-core:38367]'
- c = Class.new
+ c = Class.new do
+ def self.respond_to_missing?(*)
+ super
+ end
+ end
s = "gadzooks"
{
- :respond_to? => "#{s}1", :method_defined? => "#{s}2",
+ #:respond_to? => "#{s}1",
+ :method_defined? => "#{s}2",
:public_method_defined? => "#{s}3", :private_method_defined? => "#{s}4",
:protected_method_defined? => "#{s}5", :const_defined? => "A#{s}",
:instance_variable_defined? => "@#{s}", :class_variable_defined? => "@@#{s}"