diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-13 02:58:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-13 02:58:52 +0000 |
commit | fc82b5f4c0f7a3b908ee47836195066c27432c9b (patch) | |
tree | 86493824b235188313dc86f8ee73768b960147c8 /test/ruby | |
parent | c851bd00a379d43bb842ce66f7eee2f61d60d2fd (diff) | |
download | ruby-fc82b5f4c0f7a3b908ee47836195066c27432c9b.tar.gz |
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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index d3a44d1234..8a33258759 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -514,7 +514,7 @@ class TestFileExhaustive < Test::Unit::TestCase 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 |