diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-04 00:40:48 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-04 00:40:48 +0000 |
commit | 7ea31367bbbdf0c674a96730a26b477def8ca4a9 (patch) | |
tree | 7f86a1ab48328a00d9e043b39fbb419caf1ca549 /spec | |
parent | a13b1f507b679f7735a0a062d5c6c6d1f5fd6a1e (diff) |
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
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/file/expand_path_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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! |