diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-03-01 04:54:51 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-03-01 04:59:27 +0900 |
commit | 356e032e1a622c9e34c1c48b516861db10b3b31b (patch) | |
tree | 5c664510c959847feba1841f5bbf7ac47851bdc1 /test | |
parent | a70aa5998c6a8c805fff1c2655e9860d07aec19c (diff) | |
download | ruby-356e032e1a622c9e34c1c48b516861db10b3b31b.tar.gz |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_require.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 000ae99fed..fa2f2ec5d0 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -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) |