aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other/exec_spec.rb
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-07-21 14:58:51 -0700
committerCarlhuda <carlhuda@engineyard.com>2010-07-21 14:58:51 -0700
commit2dabdc36ed2f0d725a5c7930fe492f48755b675e (patch)
tree3101ddbe6b68d08358df83761db23a8b51a8da0c /spec/other/exec_spec.rb
parent424e233b9849d7ebf074e2405e3ad3dc180d7147 (diff)
downloadbundler-2dabdc36ed2f0d725a5c7930fe492f48755b675e.tar.gz
Fix a bug where `bundle exec bundle *` and shelling out to bundle from inside a bundle failed in some cases
Diffstat (limited to 'spec/other/exec_spec.rb')
-rw-r--r--spec/other/exec_spec.rb31
1 files changed, 30 insertions, 1 deletions
diff --git a/spec/other/exec_spec.rb b/spec/other/exec_spec.rb
index 67bb1d4b..d18026b8 100644
--- a/spec/other/exec_spec.rb
+++ b/spec/other/exec_spec.rb
@@ -207,4 +207,33 @@ describe "bundle exec" do
end
end
-end \ No newline at end of file
+
+ describe "bundling bundler" do
+ before(:each) do
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack"
+ G
+
+ bundle "install vendor --disable-shared-gems"
+ end
+
+ it "does not explode with --disable-shared-gems" do
+ bundle "exec bundle check", :exit_status => true
+ exitstatus.should == 0
+ end
+
+ it "does not explode when starting with Bundler.setup" do
+ ruby <<-R
+ require "rubygems"
+ require "bundler"
+ Bundler.setup
+ puts `bundle check`
+ puts $?
+ R
+
+ out.should include("satisfied")
+ out.should include("\n0")
+ end
+ end
+end