summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-05 20:25:18 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-06 14:01:37 +0100
commit7923737ef28e45964a8f437824722265ecc9b278 (patch)
treec95fb717aedcdc8c6296e6d77ac50a4113ea7648
parent140b5de76f2e23fc44333d55efb689ad27a81828 (diff)
downloadbundler-7923737ef28e45964a8f437824722265ecc9b278.tar.gz
Remove unneeded `:keep_path`
-rw-r--r--spec/install/gemfile/gemspec_spec.rb2
-rw-r--r--spec/support/builders.rb4
-rw-r--r--spec/support/helpers.rb5
3 files changed, 3 insertions, 8 deletions
diff --git a/spec/install/gemfile/gemspec_spec.rb b/spec/install/gemfile/gemspec_spec.rb
index fcda3004f5..90e25571e2 100644
--- a/spec/install/gemfile/gemspec_spec.rb
+++ b/spec/install/gemfile/gemspec_spec.rb
@@ -175,7 +175,7 @@ RSpec.describe "bundle install from an existing gemspec" do
s.add_dependency "platform_specific"
end
- system_gems "platform_specific-1.0-java", :path => :bundle_path, :keep_path => true
+ system_gems "platform_specific-1.0-java", :path => :bundle_path
install_gemfile! <<-G
gemspec :path => '#{tmp.join("foo")}'
diff --git a/spec/support/builders.rb b/spec/support/builders.rb
index ac56216a85..a78219707e 100644
--- a/spec/support/builders.rb
+++ b/spec/support/builders.rb
@@ -763,9 +763,9 @@ module Spec
gem_path = File.expand_path("#{@spec.full_name}.gem", lib_path)
if opts[:to_system]
- @context.system_gems gem_path, :keep_path => true
+ @context.system_gems gem_path
elsif opts[:to_bundle]
- @context.system_gems gem_path, :path => :bundle_path, :keep_path => true
+ @context.system_gems gem_path, :path => :bundle_path
else
FileUtils.mv(gem_path, destination)
end
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index dde8daaf6f..e556292774 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -374,11 +374,6 @@ module Spec
end
gems = gems.flatten
- unless opts[:keep_path]
- FileUtils.rm_rf(path)
- FileUtils.mkdir_p(path)
- end
-
Gem.clear_paths
env_backup = ENV.to_hash