Issue #3630 has been updated by Tomas Matousek.


That is 

Dir.chdir 'c:/temp' do
  ENV["HOME"] = '~'
  File.expand_path('~').should == 'c:/temp/~'
end
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3630

----------------------------------------
http://redmine.ruby-lang.org