diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-22 11:37:06 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-22 11:37:06 +0000 |
commit | b8a1e15ef120f824a7ab7d1fa793dc2da8154ac9 (patch) | |
tree | c08114f7f386c86cdc8022f0d9dbafd4d057b176 /test/ruby/test_object.rb | |
parent | e0060732f13f1f930feeb390e883f307dd0f89d4 (diff) |
* test/ruby/test_object.rb (TestObject#test_respond_to_missing):
2nd argument of respond_to_missing? is not optional.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r-- | test/ruby/test_object.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index 63c1d32bef..2935885431 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -336,14 +336,14 @@ class TestObject < Test::Unit::TestCase def test_respond_to_missing c = Class.new do - def respond_to_missing?(id, priv=false) + def respond_to_missing?(id, priv) if id == :foobar true else false end end - def method_missing(id,*args) + def method_missing(id, *args) if id == :foobar return [:foo, *args] else |