summaryrefslogtreecommitdiff
path: root/spec/commands/exec_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/commands/exec_spec.rb')
-rw-r--r--spec/commands/exec_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 752d213994..8ad5a3c125 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -840,23 +840,23 @@ __FILE__: #{path.to_s.inspect}
end
context "nested bundle exec" do
- let(:system_gems_to_install) { super() << :bundler }
-
- context "with shared gems disabled" do
+ context "when bundle in a local path" do
before do
+ system_gems :bundler
+
gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
gem "rack"
G
- bundle :install, :system_bundler => true, :path => "vendor/bundler"
+ bundle "config path vendor/bundler"
+ bundle! :install, :system_bundler => true
end
- it "overrides disable_shared_gems so bundler can be found", :ruby_repo do
- system_gems :bundler
+ it "correctly shells out", :ruby_repo do
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