From 7ea31367bbbdf0c674a96730a26b477def8ca4a9 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 4 Dec 2018 00:40:48 +0000 Subject: Use Dir.home to avoid platform dependency On Solaris 10, `echo ~#{ENV['USER']}` As expected git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/core/file/expand_path_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/ruby/core/file/expand_path_spec.rb') diff --git a/spec/ruby/core/file/expand_path_spec.rb b/spec/ruby/core/file/expand_path_spec.rb index 0b48c64154..cbc3d34bdb 100644 --- a/spec/ruby/core/file/expand_path_spec.rb +++ b/spec/ruby/core/file/expand_path_spec.rb @@ -89,7 +89,7 @@ describe "File.expand_path" do platform_is_not :windows do before do @var_home = ENV['HOME'].chomp('/') - @db_home = `/bin/echo ~#{ENV['USER']}`.chomp + @db_home = Dir.home end # FIXME: these are insane! -- cgit v1.2.3