зеркало из https://github.com/github/ruby.git
* test/rubygems/test_gem.rb (test_self_path_APPLE_GEM_HOME): don't use
fixed /tmp/apple_gem_home directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
dd02419760
Коммит
c8ab5d2dd9
|
@ -1,3 +1,8 @@
|
|||
Sat Jun 28 13:12:06 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/rubygems/test_gem.rb (test_self_path_APPLE_GEM_HOME): don't use
|
||||
fixed /tmp/apple_gem_home directory.
|
||||
|
||||
Sat Jun 28 08:40:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c : check String encoding when
|
||||
|
|
|
@ -3,6 +3,7 @@ require 'rubygems'
|
|||
require 'rubygems/gem_openssl'
|
||||
require 'rubygems/installer'
|
||||
require 'pathname'
|
||||
require 'tmpdir'
|
||||
|
||||
class TestGem < RubyGemTestCase
|
||||
|
||||
|
@ -260,9 +261,10 @@ class TestGem < RubyGemTestCase
|
|||
unless win_platform?
|
||||
def test_self_path_APPLE_GEM_HOME
|
||||
Gem.clear_paths
|
||||
Gem.const_set :APPLE_GEM_HOME, '/tmp/apple_gem_home'
|
||||
|
||||
assert Gem.path.include?('/tmp/apple_gem_home')
|
||||
Dir.mktmpdir("apple_gem_home") {|d|
|
||||
Gem.const_set :APPLE_GEM_HOME, d
|
||||
assert Gem.path.include?(d)
|
||||
}
|
||||
ensure
|
||||
Gem.send :remove_const, :APPLE_GEM_HOME
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче