summaryrefslogtreecommitdiff
path: root/test/ripper/test_parser_events.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ripper/test_parser_events.rb')
-rw-r--r--test/ripper/test_parser_events.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb
index 4cb56f66f0..1be2833a4b 100644
--- a/test/ripper/test_parser_events.rb
+++ b/test/ripper/test_parser_events.rb
@@ -131,6 +131,12 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
assert_equal true, thru_args_new
end
+ def test_args_forward
+ thru_args_forward = false
+ parse('def m(...) n(...) end', :on_args_forward) {thru_args_forward = true}
+ assert_equal true, thru_args_forward
+ end
+
def test_arg_paren
# FIXME
end