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

Fix broken merge of gemutilities, add build_rake_in as necessary

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2008-09-25 10:37:01 +00:00
parent 1833cfab35
commit 6cd13d6577
4 changed files with 16 additions and 7 deletions

View file

@ -1,4 +1,9 @@
Thu Sep 25 19:13:12 2008 Thu Sep 25 19:34:33 2008 Eric Hodel <drbrain@segment7.net>
* test/rubygems/*: Update some new tests to use build_rake_in.
* test/rubygems/gemutilities.rb: Fix broken merge of rake detection.
Thu Sep 25 19:13:12 2008 Eric Hodel <drbrain@segment7.net>
* lib/rubygems*: Update to RubyGems 1.3.0 r1891. * lib/rubygems*: Update to RubyGems 1.3.0 r1891.

View file

@ -461,11 +461,11 @@ class RubyGemTestCase < Test::Unit::TestCase
@@ruby = rubybin @@ruby = rubybin
env_rake = ENV['rake'] env_rake = ENV['rake']
ruby19_rake = @@ruby + " " + File.expand_path("../../../bin/rake", __FILE__) ruby19_rake = File.expand_path("../../../bin/rake", __FILE__)
@@rake = if env_rake then @@rake = if env_rake then
ENV["rake"] ENV["rake"]
elsif File.exist? ruby19_rake then elsif File.exist? ruby19_rake then
ruby19_rake @@ruby + " " + ruby19_rake
else else
'rake' 'rake'
end end

View file

@ -12,9 +12,11 @@ class TestGemCommandsUninstallCommand < GemInstallerTestCase
ui = MockGemUi.new ui = MockGemUi.new
util_setup_gem ui util_setup_gem ui
build_rake_in do
use_ui ui do use_ui ui do
@installer.install @installer.install
end end
end
@cmd = Gem::Commands::UninstallCommand.new @cmd = Gem::Commands::UninstallCommand.new
@cmd.options[:executables] = true @cmd.options[:executables] = true

View file

@ -618,9 +618,11 @@ load 'my_exec'
@installer = Gem::Installer.new @gem, :install_dir => gemhome2, @installer = Gem::Installer.new @gem, :install_dir => gemhome2,
:source_index => source_index :source_index => source_index
build_rake_in do
use_ui @ui do use_ui @ui do
@installer.install @installer.install
end end
end
assert File.exist?(File.join(gemhome2, 'gems', @spec.full_name)) assert File.exist?(File.join(gemhome2, 'gems', @spec.full_name))
end end