mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string):
enable generic test on all platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4fdb1fbdbf
commit
2aabb9aed2
1 changed files with 3 additions and 3 deletions
|
@ -508,11 +508,11 @@ class TestFileExhaustive < Test::Unit::TestCase
|
|||
ENV["HOME"] = new_home
|
||||
bug8034 = "[ruby-core:53168]"
|
||||
|
||||
assert_equal File.join(new_home, "foo"), File.expand_path("foo", "~")
|
||||
assert_equal File.join(new_home, "bar", "foo"), File.expand_path("foo", "~/bar")
|
||||
assert_equal File.join(new_home, "foo"), File.expand_path("foo", "~"), bug8034
|
||||
assert_equal File.join(new_home, "bar", "foo"), File.expand_path("foo", "~/bar"), bug8034
|
||||
ensure
|
||||
ENV["HOME"] = home
|
||||
end if DRIVE
|
||||
end
|
||||
|
||||
def test_expand_path_remove_trailing_alternative_data
|
||||
assert_equal File.join(@rootdir, "aaa"), File.expand_path("#{@rootdir}/aaa::$DATA")
|
||||
|
|
Loading…
Reference in a new issue