summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Piotrowski <piotrowski+git@gmail.com>2019-03-03 18:25:37 +0100
committerJan Piotrowski <piotrowski+git@gmail.com>2019-03-03 18:25:37 +0100
commit7353fd888d6c5c7d0c58bd2589a9ec474d4c856d (patch)
tree9031c564bbb231d5d00a790ad271dffcb1080123
parent730d42a9226fceb9951481f27315c85722d008a7 (diff)
downloadbundler-7353fd888d6c5c7d0c58bd2589a9ec474d4c856d.tar.gz
fix other sys_exec calls that prepended an env variable
-rw-r--r--spec/commands/binstubs_spec.rb2
-rw-r--r--spec/commands/newgem_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb
index b958677876..ddf58af5d9 100644
--- a/spec/commands/binstubs_spec.rb
+++ b/spec/commands/binstubs_spec.rb
@@ -133,7 +133,7 @@ RSpec.describe "bundle binstubs <gem>" do
context "when BUNDLER_VERSION is set" do
it "runs the correct version of bundler" do
- sys_exec "BUNDLER_VERSION='999.999.999' #{bundled_app("bin/bundle")} install"
+ sys_exec "#{bundled_app("bin/bundle")} install", { 'BUNDLER_VERSION' => '999.999.999' }
expect(exitstatus).to eq(42) if exitstatus
expect(last_command.stderr).to include("Activating bundler (999.999.999) failed:").
and include("To install the version of bundler this project requires, run `gem install bundler -v '999.999.999'`")
diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb
index c7cc5e594a..6539c7b4f1 100644
--- a/spec/commands/newgem_spec.rb
+++ b/spec/commands/newgem_spec.rb
@@ -162,7 +162,7 @@ RSpec.describe "bundle gem" do
load_paths = [lib, spec]
load_path_str = "-I#{load_paths.join(File::PATH_SEPARATOR)}"
- sys_exec "PATH=\"\" #{Gem.ruby} #{load_path_str} #{bindir.join("bundle")} gem #{gem_name}"
+ sys_exec "#{Gem.ruby} #{load_path_str} #{bindir.join("bundle")} gem #{gem_name}", { 'PATH' => '' }
end
it "creates the gem without the need for git" do