1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rubygems/installer.rb (Gem::Installer#initialize): fixed

typos.

* test/rubygems/test_gem.rb (test_self_dir): removed false
  assertions.

* test/rubygems/test_gem.rb (test_self_set_paths): checks if paths
  are included.

* test/rubygems/test_gem_commands_install_command.rb
  (test_execute_remote): checks diagnostic message too.

* test/rubygems/test_gem_installer.rb (load): uses Gem.ruby.

* test/rubygems/gemutilities.rb (Gem.ruby): initializes from the
  environment variable to run without installation.

* test/rubygems/gemutilities.rb (RubyGemTestCase#util_build_gem):
  creates cache directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-01-22 07:28:35 +00:00
parent 9e83ce20b1
commit 018e1e4f5e
6 changed files with 44 additions and 12 deletions

View file

@ -112,9 +112,18 @@ class TestGemCommandsInstallCommand < RubyGemTestCase
@cmd.options[:args] = [@a2.name]
err = ""
class << err
alias write <<
end
use_ui @ui do
e = assert_raises Gem::SystemExitException do
@cmd.execute
stderr, $stderr = $stderr, err
begin
@cmd.execute
ensure
$stderr = stderr
end
end
assert_equal 0, e.exit_code
end
@ -127,6 +136,7 @@ class TestGemCommandsInstallCommand < RubyGemTestCase
assert_equal "Installing RDoc documentation for #{@a2.full_name}...",
out.shift
assert out.empty?, out.inspect
assert_match /^Updating class cache with \d+ classes/, err
end
def test_execute_two