diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-08-20 12:29:51 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-08-30 12:39:31 -0700 |
commit | 856bb3c35d5d81481b2e5dd00353298e8a0c2ee7 (patch) | |
tree | 02844dc2808b315f85ecf71f460e2d49e43d53d4 /test/csv | |
parent | 42adc5bc6bb532e20bf2191ad99781ee701dea36 (diff) | |
download | ruby-856bb3c35d5d81481b2e5dd00353298e8a0c2ee7.tar.gz |
Fix remaining warning issues in the tests due to keyword argument separation
Diffstat (limited to 'test/csv')
-rw-r--r-- | test/csv/interface/test_read.rb | 14 | ||||
-rw-r--r-- | test/csv/interface/test_write.rb | 8 |
2 files changed, 11 insertions, 11 deletions
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 |