Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: rename Helper to CSVHelper #278

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/csv/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

require_relative "../lib/with_different_ofs"

module Helper
module CSVHelper
def with_chunk_size(chunk_size)
chunk_size_keep = ENV["CSV_PARSER_SCANNER_TEST_CHUNK_SIZE"]
begin
Expand Down
2 changes: 1 addition & 1 deletion test/csv/parse/test_inputs_scanner.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative "../helper"

class TestCSVParseInputsScanner < Test::Unit::TestCase
include Helper
include CSVHelper

def test_scan_keep_over_chunks_nested_back
input = CSV::Parser::UnoptimizedStringIO.new("abcdefghijklmnl")
Expand Down
2 changes: 1 addition & 1 deletion test/csv/parse/test_row_separator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class TestCSVParseRowSeparator < Test::Unit::TestCase
extend DifferentOFS
include Helper
include CSVHelper

def test_multiple_characters
with_chunk_size("1") do
Expand Down
2 changes: 1 addition & 1 deletion test/csv/parse/test_skip_lines.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class TestCSVParseSkipLines < Test::Unit::TestCase
extend DifferentOFS
include Helper
include CSVHelper

def test_default
csv = CSV.new("a,b,c\n")
Expand Down
2 changes: 1 addition & 1 deletion test/csv/test_encodings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class TestCSVEncodings < Test::Unit::TestCase
extend DifferentOFS
include Helper
include CSVHelper

def setup
super
Expand Down
2 changes: 1 addition & 1 deletion test/csv/write/test_general.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_relative "../helper"

module TestCSVWriteGeneral
include Helper
include CSVHelper

def test_tab
assert_equal("\t#{$INPUT_RECORD_SEPARATOR}",
Expand Down