summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/bundler/commands/exec_spec.rb2
-rw-r--r--spec/bundler/support/helpers.rb2
-rw-r--r--spec/bundler/support/path.rb4
3 files changed, 2 insertions, 6 deletions
diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb
index 1acfd7b219..bb13b1b086 100644
--- a/spec/bundler/commands/exec_spec.rb
+++ b/spec/bundler/commands/exec_spec.rb
@@ -856,7 +856,7 @@ __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`
+ puts `bundle exec echo foo`
RB
file.chmod(0o777)
bundle! "exec #{file}", :system_bundler => true
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb
index 2445b566aa..02ec3c790b 100644
--- a/spec/bundler/support/helpers.rb
+++ b/spec/bundler/support/helpers.rb
@@ -110,7 +110,7 @@ module Spec
bundle_bin = options.delete("bundle_bin") || bindir.join("bundle")
if system_bundler = options.delete(:system_bundler)
- bundle_bin = system_bundle_bin_path
+ bundle_bin = system_gem_path.join("bin/bundler")
end
env = options.delete(:env) || {}
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index aa06a3f047..b722ec498b 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -100,10 +100,6 @@ module Spec
tmp("gems/system", *path)
end
- def system_bundle_bin_path
- system_gem_path("bin/bundle")
- end
-
def lib_path(*args)
tmp("libs", *args)
end