mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix test for testing rake command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1bf2b99d27
commit
bad1200f9d
2 changed files with 4 additions and 1 deletions
|
@ -566,7 +566,7 @@ Also, a list:
|
||||||
|
|
||||||
@@ruby = rubybin
|
@@ruby = rubybin
|
||||||
env_rake = ENV['rake']
|
env_rake = ENV['rake']
|
||||||
ruby19_rake = 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
|
||||||
|
|
|
@ -65,7 +65,10 @@ class TestGemCommandsUninstallCommand < GemInstallerTestCase
|
||||||
util_setup_gem
|
util_setup_gem
|
||||||
|
|
||||||
use_ui @ui do
|
use_ui @ui do
|
||||||
|
tmp_rake = ENV['rake']
|
||||||
|
ENV['rake'] = @@rake
|
||||||
@installer.install
|
@installer.install
|
||||||
|
ENV['rake'] = tmp_rake
|
||||||
end
|
end
|
||||||
|
|
||||||
@cmd.options[:args] = ["pre"]
|
@cmd.options[:args] = ["pre"]
|
||||||
|
|
Loading…
Reference in a new issue