From 5c815b733d90a82d0d708d836c9a98c9704d8ad4 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 27 Jul 2011 16:18:54 +0000 Subject: * 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 --- test/ruby/test_symbol.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_symbol.rb') 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}" -- cgit v1.2.3