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

ruby-changes:27688

From: nobu <ko1@a...>
Date: Wed, 13 Mar 2013 11:59:07 +0900 (JST)
Subject: [ruby-changes:27688] nobu:r39740 (trunk): test_file_exhaustive.rb: fix abolute root

nobu	2013-03-13 11:58:52 +0900 (Wed, 13 Mar 2013)

  New Revision: 39740

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

  Log:
    test_file_exhaustive.rb: fix abolute root
    
    * test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string):
      fix abolute root path for dosish platforms.  [ruby-core:53354]

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb

Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 39739)
+++ test/ruby/test_file_exhaustive.rb	(revision 39740)
@@ -514,7 +514,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L514
     assert_equal File.join(new_home, "bar", "foo"), File.expand_path("foo", "~/bar"), bug8034
 
     assert_raise(ArgumentError) { File.expand_path(".", UnknownUserHome) }
-    assert_nothing_raised(ArgumentError) { File.expand_path("/", UnknownUserHome) }
+    assert_nothing_raised(ArgumentError) { File.expand_path("#{DRIVE}/", UnknownUserHome) }
   ensure
     ENV["HOME"] = home
   end

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

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