mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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 ```
This commit is contained in:
parent
660388f6c5
commit
c50d9dc67d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue