summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/csv/parse/test_header.rb4
-rw-r--r--test/csv/parse/test_rewind.rb2
-rw-r--r--test/logger/test_logdevice.rb2
-rw-r--r--test/test_tempfile.rb4
4 files changed, 6 insertions, 6 deletions
diff --git a/test/csv/parse/test_header.rb b/test/csv/parse/test_header.rb
index d92d823f61..61346c2aac 100644
--- a/test/csv/parse/test_header.rb
+++ b/test/csv/parse/test_header.rb
@@ -312,12 +312,12 @@ A
end
def test_parse_empty
- assert_equal(CSV::Table.new([], {}),
+ assert_equal(CSV::Table.new([], **{}),
CSV.parse("", headers: true))
end
def test_parse_empty_line
- assert_equal(CSV::Table.new([], {}),
+ assert_equal(CSV::Table.new([], **{}),
CSV.parse("\n", headers: true))
end
diff --git a/test/csv/parse/test_rewind.rb b/test/csv/parse/test_rewind.rb
index 73a69e9ccd..43fd8da159 100644
--- a/test/csv/parse/test_rewind.rb
+++ b/test/csv/parse/test_rewind.rb
@@ -7,7 +7,7 @@ class TestCSVParseRewind < Test::Unit::TestCase
extend DifferentOFS
def parse(data, options={})
- csv = CSV.new(data, options)
+ csv = CSV.new(data, **options)
records = csv.to_a
csv.rewind
[records, csv.to_a]
diff --git a/test/logger/test_logdevice.rb b/test/logger/test_logdevice.rb
index 2c842e9343..428d83c6b2 100644
--- a/test/logger/test_logdevice.rb
+++ b/test/logger/test_logdevice.rb
@@ -30,7 +30,7 @@ class TestLogDevice < Test::Unit::TestCase
end
def d(log, opt = {})
- Logger::LogDevice.new(log, opt)
+ Logger::LogDevice.new(log, **opt)
end
def test_initialize
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