summaryrefslogtreecommitdiff
path: root/test/ripper/test_parser_events.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-27 14:26:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-27 14:26:28 +0000
commit36326ceb22d114ec75675806d2c434f89ad417d1 (patch)
treefa8f28d2cf069961b4cfe8ed51c43eb3d0aa0051 /test/ripper/test_parser_events.rb
parentd249be623375e2725e1e3a979d7d47e45d356265 (diff)
test_parser_events.rb: suppress a warning
* test/ripper/test_parser_events.rb (test_warn_cr_in_middle): remove unused variable to suppress assigned-but-unused-variable warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper/test_parser_events.rb')
-rw-r--r--test/ripper/test_parser_events.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb
index 2b9f97a..55485b6 100644
--- a/test/ripper/test_parser_events.rb
+++ b/test/ripper/test_parser_events.rb
@@ -1323,7 +1323,7 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
def test_warn_cr_in_middle
fmt = nil
- assert_warn("") {fmt, *args = warn("\r;")}
+ assert_warn("") {fmt, = warn("\r;")}
assert_match(/encountered/, fmt)
end
end if ripper_test