Skip to content

Commit

Permalink
[rubygems/rubygems] The system_gem_path helper method already joins…
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and matzbot committed Jun 6, 2024
1 parent f0d5df7 commit 4720b7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/bundler/support/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 124,7 @@ def bundle(cmd, options = {}, &block)
end

def bundler(cmd, options = {})
options[:bundle_bin] = system_gem_path.join("bin/bundler")
options[:bundle_bin] = system_gem_path("bin/bundler")
bundle(cmd, options)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/support/rubygems_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 70,7 @@ def setup_test_paths

ENV["BUNDLE_PATH"] = nil
ENV["GEM_HOME"] = ENV["GEM_PATH"] = Path.base_system_gem_path.to_s
ENV["PATH"] = [Path.system_gem_path.join("bin"), ENV["PATH"]].join(File::PATH_SEPARATOR)
ENV["PATH"] = [Path.system_gem_path("bin"), ENV["PATH"]].join(File::PATH_SEPARATOR)
ENV["PATH"] = [Path.bindir, ENV["PATH"]].join(File::PATH_SEPARATOR) if Path.ruby_core?
end

Expand Down

0 comments on commit 4720b7d

Please sign in to comment.