aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_tempfile.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-09-06 13:37:31 -0700
committerJeremy Evans <code@jeremyevans.net>2019-09-06 19:41:23 -0700
commit146677a1e76fd33d86894d0430ea137dbc63579a (patch)
tree950a4bd3ad34727df5a31730bc8958656ffc50e1 /test/test_tempfile.rb
parent434582d888ad2982ec01d9b5a1e1afe8480312ab (diff)
downloadruby-146677a1e76fd33d86894d0430ea137dbc63579a.tar.gz
Fix keyword argument warnings in the tests from Class#new
This were previously hidden because calls from C were not warned.
Diffstat (limited to 'test/test_tempfile.rb')
-rw-r--r--test/test_tempfile.rb4
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