зеркало из https://github.com/github/ruby.git
[ruby/csv] test: rename Helper to CSVHelper
(https://github.com/ruby/csv/pull/278) Rename it so that in ruby/ruby, the generic name Helper is not used.
This commit is contained in:
Родитель
e151a2ff8e
Коммит
38ef537ce0
|
@ -5,7 +5,7 @@ require "csv"
|
|||
|
||||
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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -5,7 +5,7 @@ require_relative "../helper"
|
|||
|
||||
class TestCSVParseRowSeparator < Test::Unit::TestCase
|
||||
extend DifferentOFS
|
||||
include Helper
|
||||
include CSVHelper
|
||||
|
||||
def test_multiple_characters
|
||||
with_chunk_size("1") do
|
||||
|
|
|
@ -4,7 +4,7 @@ require_relative "../helper"
|
|||
|
||||
class TestCSVParseSkipLines < Test::Unit::TestCase
|
||||
extend DifferentOFS
|
||||
include Helper
|
||||
include CSVHelper
|
||||
|
||||
def test_default
|
||||
csv = CSV.new("a,b,c\n")
|
||||
|
|
|
@ -5,7 +5,7 @@ require_relative "helper"
|
|||
|
||||
class TestCSVEncodings < Test::Unit::TestCase
|
||||
extend DifferentOFS
|
||||
include Helper
|
||||
include CSVHelper
|
||||
|
||||
def setup
|
||||
super
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
require_relative "../helper"
|
||||
|
||||
module TestCSVWriteGeneral
|
||||
include Helper
|
||||
include CSVHelper
|
||||
|
||||
def test_tab
|
||||
assert_equal("\t#{$INPUT_RECORD_SEPARATOR}",
|
||||
|
|
Загрузка…
Ссылка в новой задаче