ruby-changes:27649
From: nobu <ko1@a...>
Date: Mon, 11 Mar 2013 00:28:54 +0900 (JST)
Subject: [ruby-changes:27649] nobu:r39701 (trunk): * test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string):
nobu 2013-03-11 00:26:48 +0900 (Mon, 11 Mar 2013) New Revision: 39701 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39701 Log: * test/ruby/test_file_exhaustive.rb (test_expand_path_home_dir_string): enable generic test on all platforms. Modified files: trunk/test/ruby/test_file_exhaustive.rb Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 39700) +++ test/ruby/test_file_exhaustive.rb (revision 39701) @@ -508,11 +508,11 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L508 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") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/