[前][次][番号順一覧][スレッド一覧]

ruby-changes:15269

From: naruse <ko1@a...>
Date: Fri, 2 Apr 2010 02:21:23 +0900 (JST)
Subject: [ruby-changes:15269] Ruby:r27153 (trunk): Fix test for testing rake command.

naruse	2010-04-02 02:21:08 +0900 (Fri, 02 Apr 2010)

  New Revision: 27153

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27153

  Log:
    Fix test for testing rake command.

  Modified files:
    trunk/test/rubygems/gemutilities.rb
    trunk/test/rubygems/test_gem_commands_uninstall_command.rb

Index: test/rubygems/test_gem_commands_uninstall_command.rb
===================================================================
--- test/rubygems/test_gem_commands_uninstall_command.rb	(revision 27152)
+++ test/rubygems/test_gem_commands_uninstall_command.rb	(revision 27153)
@@ -65,7 +65,10 @@
     util_setup_gem
 
     use_ui @ui do
+      tmp_rake = ENV['rake']
+      ENV['rake'] = @@rake
       @installer.install
+      ENV['rake'] = tmp_rake
     end
 
     @cmd.options[:args] = ["pre"]
Index: test/rubygems/gemutilities.rb
===================================================================
--- test/rubygems/gemutilities.rb	(revision 27152)
+++ test/rubygems/gemutilities.rb	(revision 27153)
@@ -566,7 +566,7 @@
 
   @@ruby = rubybin
   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
              ENV["rake"]
            elsif File.exist? ruby19_rake then

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]