diff options
Diffstat (limited to 'test/csv/test_features.rb')
-rwxr-xr-x | test/csv/test_features.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/csv/test_features.rb b/test/csv/test_features.rb index f8aa0d87c5..a1f1ddbd15 100755 --- a/test/csv/test_features.rb +++ b/test/csv/test_features.rb @@ -137,6 +137,15 @@ class TestCSV::Features < TestCSV test_lineno end + def test_unknown_options + assert_raise_with_message(ArgumentError, /unknown keyword/) { + CSV.new(@sample_data, unknown: :error) + } + assert_raise_with_message(ArgumentError, /unknown keyword/) { + CSV.new(@sample_data, universal_newline: true) + } + end + def test_skip_blanks assert_equal(4, @csv.to_a.size) |