From 856bb3c35d5d81481b2e5dd00353298e8a0c2ee7 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 20 Aug 2019 12:29:51 -0700 Subject: Fix remaining warning issues in the tests due to keyword argument separation --- test/csv/interface/test_read.rb | 14 +++++++------- test/csv/interface/test_write.rb | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'test/csv') diff --git a/test/csv/interface/test_read.rb b/test/csv/interface/test_read.rb index 52620964c0..58ec188f94 100644 --- a/test/csv/interface/test_read.rb +++ b/test/csv/interface/test_read.rb @@ -266,12 +266,12 @@ class TestCSVInterfaceRead < Test::Unit::TestCase def test_options_not_modified options = {}.freeze - CSV.foreach(@input.path, options) - CSV.open(@input.path, options) {} - CSV.parse("", options) - CSV.parse_line("", options) - CSV.read(@input.path, options) - CSV.readlines(@input.path, options) - CSV.table(@input.path, options) + CSV.foreach(@input.path, **options) + CSV.open(@input.path, **options) {} + CSV.parse("", **options) + CSV.parse_line("", **options) + CSV.read(@input.path, **options) + CSV.readlines(@input.path, **options) + CSV.table(@input.path, **options) end end diff --git a/test/csv/interface/test_write.rb b/test/csv/interface/test_write.rb index 8511204ef0..8650ecd624 100644 --- a/test/csv/interface/test_write.rb +++ b/test/csv/interface/test_write.rb @@ -166,9 +166,9 @@ b|a|c def test_options_not_modified options = {}.freeze - CSV.generate(options) {} - CSV.generate_line([], options) - CSV.filter("", "", options) - CSV.instance("", options) + CSV.generate(**options) {} + CSV.generate_line([], **options) + CSV.filter("", "", **options) + CSV.instance("", **options) end end -- cgit v1.2.3