diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-15 09:22:11 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-15 09:22:11 +0000 |
commit | b5aba69e60dec153ecab3263ebc3fa5e93662a46 (patch) | |
tree | de335981d912c9359496aff4ea93921e96655c3f /test/csv/helper.rb | |
parent | 1371865130ee432d44683222982720e5ba3fd66e (diff) |
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
Diffstat (limited to 'test/csv/helper.rb')
-rw-r--r-- | test/csv/helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/csv/helper.rb b/test/csv/helper.rb index 4f7b00244b..2542cc9c97 100644 --- a/test/csv/helper.rb +++ b/test/csv/helper.rb @@ -1,5 +1,18 @@ +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 |