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
This commit is contained in:
nobu 2013-03-13 02:58:52 +00:00
Родитель c851bd00a3
Коммит fc82b5f4c0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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