diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-09-06 13:37:31 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-09-06 19:41:23 -0700 |
commit | 146677a1e76fd33d86894d0430ea137dbc63579a (patch) | |
tree | 950a4bd3ad34727df5a31730bc8958656ffc50e1 /test/test_tempfile.rb | |
parent | 434582d888ad2982ec01d9b5a1e1afe8480312ab (diff) |
Fix keyword argument warnings in the tests from Class#new
This were previously hidden because calls from C were not warned.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2432
Diffstat (limited to 'test/test_tempfile.rb')
-rw-r--r-- | test/test_tempfile.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index 203059e41c..8fcba3aea8 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -8,8 +8,8 @@ class TestTempfile < Test::Unit::TestCase @tempfile = nil end - def tempfile(*args, &block) - t = Tempfile.new(*args, &block) + def tempfile(*args, **kw, &block) + t = Tempfile.new(*args, **kw, &block) @tempfile = (t unless block) end |