summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2025-07-23 19:16:35 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-25 11:10:34 +0900
commitce0d71b3a75df3e26d0b3fed14019a3c2f87750e (patch)
tree9f90a6c04c70cdedcf2b8d79823aab78247f8475
parentb78406a032b747408bb466716ef02c195a327b85 (diff)
[rubygems/rubygems] Simplify new gem spec that simulates "no git available"
I don't know why it was written like that. https://github.com/rubygems/rubygems/commit/ee83fddd30
-rw-r--r--spec/bundler/commands/newgem_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb
index 5ce269d2ec..40bc1c3ff4 100644
--- a/spec/bundler/commands/newgem_spec.rb
+++ b/spec/bundler/commands/newgem_spec.rb
@@ -503,10 +503,7 @@ RSpec.describe "bundle gem" do
context "when git is not available" do
# This spec cannot have `git` available in the test env
before do
- load_paths = [lib_dir, spec_dir]
- load_path_str = "-I#{load_paths.join(File::PATH_SEPARATOR)}"
-
- sys_exec "#{Gem.ruby} #{load_path_str} #{bindir.join("bundle")} gem #{gem_name}", env: { "PATH" => "" }
+ bundle "gem #{gem_name}", env: { "PATH" => "" }
end
it "creates the gem without the need for git" do