summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-24 17:46:48 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-24 18:52:58 +0200
commitd4611ada03fa803700d3b1be6a11719e5a87dba6 (patch)
treee0a802e5dbfdb428620a5c3fe38d1c115f6ed4e6
parent6b22e5467364f691bdd3435e4693df547446bab4 (diff)
downloadbundler-try_revert_old_patch.tar.gz
Fix spec to use bundler the way we expecttry_revert_old_patch
-rw-r--r--spec/commands/exec_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index d63d58a962..562d5956b9 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -852,7 +852,9 @@ __FILE__: #{path.to_s.inspect}
file = bundled_app("file_that_bundle_execs.rb")
create_file(file, <<-RB)
#!#{Gem.ruby}
- puts `#{system_bundle_bin_path} exec echo foo`
+ Bundler.with_original_env do
+ puts `bundle exec echo foo`
+ end
RB
file.chmod(0o777)
bundle! "exec #{file}", :system_bundler => true