summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-12-10 11:26:22 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-12-10 11:26:22 +0900
commitc50d9dc67d350ad4e21ff1af39635bb5a6114282 (patch)
tree9ee1507ae247a38458bbe09558b0ece20ec80b9d
parent660388f6c5b148ea6f84d589482391bf78f35c6b (diff)
test/ruby/test_keywords.rb: suppress a warning
https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20191210T003005Z.log.html.gz ``` .../test/ruby/test_keyword.rb:2711: warning: `*' interpreted as argument prefix ```
-rw-r--r--test/ruby/test_keyword.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_keyword.rb b/test/ruby/test_keyword.rb
index b0199e0c534..874b09bcfaf 100644
--- a/test/ruby/test_keyword.rb
+++ b/test/ruby/test_keyword.rb
@@ -2708,7 +2708,7 @@ class TestKeywordArguments < Test::Unit::TestCase
o = Object.new
def o.foo(*args)
- yield *args
+ yield(*args)
end
foo = o.method(:foo).to_proc
assert_warn(/Skipping set of ruby2_keywords flag for proc \(proc created from method\)/) do