summaryrefslogtreecommitdiff
path: root/test/csv
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-08-20 12:29:51 -0700
committerJeremy Evans <code@jeremyevans.net>2019-08-30 12:39:31 -0700
commit856bb3c35d5d81481b2e5dd00353298e8a0c2ee7 (patch)
tree02844dc2808b315f85ecf71f460e2d49e43d53d4 /test/csv
parent42adc5bc6bb532e20bf2191ad99781ee701dea36 (diff)
Fix remaining warning issues in the tests due to keyword argument separation
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2395
Diffstat (limited to 'test/csv')
-rw-r--r--test/csv/interface/test_read.rb14
-rw-r--r--test/csv/interface/test_write.rb8
2 files changed, 11 insertions, 11 deletions
diff --git a/test/csv/interface/test_read.rb b/test/csv/interface/test_read.rb
index 5262096..58ec188 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 8511204..8650ecd 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