Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use MockGemUi in *all* tests, not just the ones that specify it.

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1817 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
commit cb667de0e01ef8f6ba6b19c9f48615d1d4590e17 1 parent e6981fd
technomancy authored
View
1  lib/rubygems.rb
@@ -650,6 +650,7 @@ def self.set_paths(gpaths)
@gem_path << Gem.dir
else
+ # TODO: should this be Gem.default_path instead?
@gem_path = [Gem.dir]
end
View
1  lib/rubygems/installer.rb
@@ -86,6 +86,7 @@ def initialize(gem, options={})
end
if !File.writable? @gem_home or
+ # TODO: Shouldn't have to test for existence of bindir; tests need it.
(File.exist? Gem.bindir and !File.writable? Gem.bindir)
if options[:user_install] == false # You explicitly don't want to use ~
raise Gem::FilePermissionError, @gem_home
View
4 test/gemutilities.rb
@@ -26,6 +26,10 @@ def self.source_index=(si)
def self.win_platform=(val)
@@win_platform = val
end
+
+ module DefaultUserInteraction
+ @ui = MockGemUi.new
+ end
end
class RubyGemTestCase < Test::Unit::TestCase
Please sign in to comment.
Something went wrong with that request. Please try again.