summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-09-30 09:14:19 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-10-20 13:07:47 -0700
commitaccee5e72162bf2ac08fb377952484847e85369a (patch)
tree915d18d283162ae9e3b9fc38b6250803eb6aba69
parente89499cf471e7d7b98db80c9e55b644aee945e96 (diff)
downloadbundler-accee5e72162bf2ac08fb377952484847e85369a.tar.gz
Add spec to make sure we can call bundler from a bundle execd program
-rw-r--r--spec/commands/exec_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 3dd3e882e0..cfbc18107e 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -345,4 +345,20 @@ describe "bundle exec" do
expect(out).to match('"TODO" is not a summary')
end
end
+
+ describe "with gems bundled for deployment" do
+ it "works when calling bundler from another script" do
+ gemfile <<-G
+ module Monkey
+ def bin_path(a,b,c)
+ raise Gem::GemNotFoundException.new('Fail')
+ end
+ end
+ Bundler.rubygems.extend(Monkey)
+ G
+ bundle "install --deployment"
+ bundle "exec ruby -e '`bundler -v`; puts $?.success?'"
+ expect(out).to match("true")
+ end
+ end
end