summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_require.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index 3b6cc1178d..4f6c62dc35 100644
--- a/test/ruby/test_require.rb
+++ b/test/ruby/test_require.rb
@@ -857,7 +857,7 @@ class TestRequire < Test::Unit::TestCase
def to_path = @path
end
- def create_ruby_file = Tempfile.create(["test", ".rb"]).path
+ def create_ruby_file = Tempfile.open(["test", ".rb"]).path
require MyString.new(create_ruby_file)
$LOADED_FEATURES.unshift(create_ruby_file)