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:
parent
a70aa5998c
commit
356e032e1a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user