summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core')
-rw-r--r--spec/ruby/core/file/expand_path_spec.rb2
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!