1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/csv/helper.rb
naruse b5aba69e60 merge revision(s) 66720:
separate downloading of Unicode property files and auxiliary files

        Separate downloading of Unicode property files in ucd and in ucd/auxiliary.
        This is needed because we need information from separate index.html files
        to discover the exact file names of property files during a beta period.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-15 09:22:11 +00:00

18 lines
394 B
Ruby

require "tempfile"
require "test/unit"
require "csv"
require_relative "../lib/with_different_ofs.rb"
module Helper
def with_chunk_size(chunk_size)
chunk_size_keep = ENV["CSV_PARSER_SCANNER_TEST_CHUNK_SIZE"]
begin
ENV["CSV_PARSER_SCANNER_TEST_CHUNK_SIZE"] = chunk_size
yield
ensure
ENV["CSV_PARSER_SCANNER_TEST_CHUNK_SIZE"] = chunk_size_keep
end
end
end