[rubygems/rubygems] Update incorrect comments.

https://github.com/rubygems/rubygems/commit/6b21f593f3
This commit is contained in:
Ellen Marie Dash 2023-09-30 00:30:05 -04:00 committed by git
parent c83f8ad867
commit 28a6c4a1ad
2 changed files with 5 additions and 4 deletions

View File

@ -196,9 +196,10 @@ class Gem::Installer
end
if @gem_home == Gem.user_dir
# If we get here, then:
# 1. `--user-install` was specified, or
# 2. GEM_HOME was not writable, and `Gem::PathSupport` fell back to `Gem.user_dir`.
# If we get here, then one of the following likely happened:
# - `--user-install` was specified
# - `Gem::PathSupport#home` fell back to `Gem.user_dir`
# - GEM_HOME was manually set to `Gem.user_dir`
check_that_user_bin_dir_is_in_path
end

View File

@ -39,7 +39,7 @@ RSpec.describe "bundle doctor" do
allow(File).to receive(:writable?).with(unwritable_file) { true }
allow(File).to receive(:readable?).with(unwritable_file) { true }
# The following 2 lines are for `Gem::PathSupport#initialize`.
# The following lines are for `Gem::PathSupport#initialize`.
allow(File).to receive(:exist?).with(Gem.default_dir)
allow(File).to receive(:writable?).with(Gem.default_dir)
allow(File).to receive(:writable?).with(File.expand_path("..", Gem.default_dir))