summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_require.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index 03519392161..78ddfab14a6 100644
--- a/test/ruby/test_require.rb
+++ b/test/ruby/test_require.rb
@@ -74,12 +74,12 @@ class TestRequire < Test::Unit::TestCase
assert_separately(%w[--disable=gems], <<-INPUT)
# leave paths for require encoding objects
bug = "#{bug8165} require #{encoding} path"
- path = "#{require_path}"
+ require_path = "#{require_path}"
enc_path = Regexp.new(Regexp.escape(RUBY_PLATFORM))
$:.replace([IO::NULL] + $:.reject {|path| enc_path !~ path})
assert_nothing_raised(LoadError, bug) {
- assert(require(path), bug)
- assert(!require(path), bug)
+ assert(require(require_path), bug)
+ assert(!require(require_path), bug)
}
INPUT
}