Skip to content

Commit

Permalink
[ruby/csv] test: rename Helper to CSVHelper
Browse files Browse the repository at this point in the history
(ruby/csv#278)

Rename it so that in ruby/ruby, the generic name Helper is not used.
  • Loading branch information
luke-gru authored and nobu committed May 24, 2023
1 parent f443737 commit fa98042
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
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

0 comments on commit fa98042

Please sign in to comment.