require enc/trans/single_byte in advance.

enc/trans/single_byte is needed to run some tests, however
it will fail to require because $: is empty.
This commit is contained in:
Koichi Sasada 2020-03-01 04:54:51 +09:00
parent a70aa5998c
commit 356e032e1a

View File

@ -88,6 +88,7 @@ class TestRequire < Test::Unit::TestCase
end
def prepare_require_path(dir, encoding)
require 'enc/trans/single_byte'
Dir.mktmpdir {|tmp|
begin
require_path = File.join(tmp, dir, 'foo.rb').encode(encoding)