summaryrefslogtreecommitdiff
path: root/test/csv
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/csv
parent434582d888ad2982ec01d9b5a1e1afe8480312ab (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/csv')
-rw-r--r--test/csv/parse/test_header.rb4
-rw-r--r--test/csv/parse/test_rewind.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/csv/parse/test_header.rb b/test/csv/parse/test_header.rb
index d92d823..61346c2 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 73a69e9..43fd8da 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]