summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-03-01 04:54:51 +0900
committerKoichi Sasada <ko1@atdot.net>2020-03-01 04:59:27 +0900
commit356e032e1a622c9e34c1c48b516861db10b3b31b (patch)
tree5c664510c959847feba1841f5bbf7ac47851bdc1 /test/ruby
parenta70aa5998c6a8c805fff1c2655e9860d07aec19c (diff)
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/ruby')
-rw-r--r--test/ruby/test_require.rb1
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)