diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 25cb92ea36..20097c58f9 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -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")