From 2aabb9aed2e026c14ce45543c797cfd6fc05d6d9 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 10 Mar 2013 15:26:48 +0000 Subject: [PATCH] * 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 --- test/ruby/test_file_exhaustive.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")