summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-27 04:11:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-27 04:11:53 +0000
commita82d27281bbec329cec62448dd62a18df6115358 (patch)
treefe61a1aa1a048f1c9a276157bef8fe59c30b6f8a
parentae09a6ae9320998567705341687cb6596a4be141 (diff)
test_require.rb: fix temporary library directory
* test/rubygems/test_require.rb (test_dash_i_beats_gems): create temporary library directory under the temporary directory created by Gem::TestCase#setup, not to leave garbages in the default temporary directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/rubygems/test_require.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index b0808f9..c05387a 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -59,7 +59,7 @@ class TestGemRequire < Gem::TestCase
install_specs c1, c2, b1, a1
- dir = Dir.mktmpdir
+ dir = Dir.mktmpdir("test_require", @tempdir)
dash_i_arg = File.join dir, 'lib'
c_rb = File.join dash_i_arg, 'b', 'c.rb'