aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_super.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-05 13:27:22 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-05 13:27:22 +0000
commit9194b220a59435a5a16d62a3ccc93b5adc784cd1 (patch)
tree654b01c15ba23e9a43ee9cc7bce65d24c54613e2 /test/ruby/test_super.rb
parent01740f0c273c89f7bcff3d5014d73c8ff6fb1986 (diff)
downloadruby-9194b220a59435a5a16d62a3ccc93b5adc784cd1.tar.gz
* test/ruby: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_super.rb')
-rw-r--r--test/ruby/test_super.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_super.rb b/test/ruby/test_super.rb
index 82d6e19ec4..9425cc83eb 100644
--- a/test/ruby/test_super.rb
+++ b/test/ruby/test_super.rb
@@ -194,7 +194,7 @@ class TestSuper < Test::Unit::TestCase
end
end
overlaid.call(str = "123")
- overlaid.call(ary = [1,2,3])
+ overlaid.call([1,2,3])
str.reverse
end
@@ -318,7 +318,6 @@ class TestSuper < Test::Unit::TestCase
}
sub_class = Class.new(super_class) {
def foo
- x = Object.new
lambda { super() }
end
}