mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a99ef20400
commit
5c815b733d
1 changed files with 7 additions and 2 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue