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

ruby-changes:29840

From: naruse <ko1@a...>
Date: Wed, 10 Jul 2013 17:11:07 +0900 (JST)
Subject: [ruby-changes:29840] naruse:r41892 (trunk): fix PATH environ related test failure introduced at r41873

naruse	2013-07-10 17:10:43 +0900 (Wed, 10 Jul 2013)

  New Revision: 41892

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

  Log:
    fix PATH environ related test failure introduced at r41873
    
    On Windows PATH_SEPARATOR is ';'.
    Therefore it can't be hardcoded.

  Modified files:
    trunk/test/rubygems/test_gem_commands_environment_command.rb

Index: test/rubygems/test_gem_commands_environment_command.rb
===================================================================
--- test/rubygems/test_gem_commands_environment_command.rb	(revision 41891)
+++ test/rubygems/test_gem_commands_environment_command.rb	(revision 41892)
@@ -11,7 +11,7 @@ class TestGemCommandsEnvironmentCommand https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_environment_command.rb#L11
 
   def test_execute
     orig_sources = Gem.sources.dup
-    orig_path, ENV['PATH'] = ENV['PATH'], '/usr/local/bin:/usr/bin:/bin'
+    orig_path, ENV['PATH'] = ENV['PATH'], %w[/usr/local/bin /usr/bin /bin].join(File::PATH_SEPARATOR)
     Gem.sources.replace %w[http://gems.example.com]
     Gem.configuration['gemcutter_key'] = 'blah'
 

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

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