Project

General

Profile

Bug #15324 ยป dir.patch

chrisseaton (Chris Seaton), 11/20/2018 04:09 PM

View differences:

test/ruby/test_dir.rb
374 374
      assert_equal(@nodir, Dir.home)
375 375
      assert_equal(@nodir, Dir.home(""))
376 376
      if user = ENV["USER"]
377
        ENV["HOME"] = env_home
378
        assert_equal(File.expand_path(env_home), Dir.home(user))
377
        assert_equal(File.expand_path("~#{user}"), Dir.home(user))
379 378
      end
380 379
    }
381 380
    %W[no:such:user \u{7559 5b88}:\u{756a}].each do |user|