summaryrefslogtreecommitdiff
path: root/test/csv
diff options
context:
space:
mode:
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]