aboutsummaryrefslogtreecommitdiffstats
path: root/spec/runtime
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-02-22 13:04:41 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-02-22 13:04:41 -0800
commitdea3313c163f7ba3ef79bbe344fa8b48ebe780f0 (patch)
tree7cf495b769547c15aed9f5902ecdd0a0eed389ae /spec/runtime
parent500d94d2198ed07c68a53e647f91d21bb088d4de (diff)
downloadbundler-dea3313c163f7ba3ef79bbe344fa8b48ebe780f0.tar.gz
Remember the --without option for bundle install
Diffstat (limited to 'spec/runtime')
-rw-r--r--spec/runtime/setup_spec.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index 69681055..cb5896d3 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -108,5 +108,38 @@ describe "Bundler.setup" do
should_be_installed "activesupport 2.3.2", :groups => :default
end
+
+ it "remembers --without and does not bail on bare Bundler.setup" do
+ install_gemfile <<-G, :without => :rails
+ source "file://#{gem_repo1}"
+ gem "activesupport"
+
+ group :rails do
+ gem "rails", "2.3.2"
+ end
+ G
+
+ install_gems "activesupport-2.3.5"
+
+ should_be_installed "activesupport 2.3.2"
+ end
+
+ it "remembers --without and does not include groups passed to Bundler.setup" do
+ install_gemfile <<-G, :without => :rails
+ source "file://#{gem_repo1}"
+ gem "activesupport"
+
+ group :rack do
+ gem "rack"
+ end
+
+ group :rails do
+ gem "rails", "2.3.2"
+ end
+ G
+
+ should_not_be_installed "activesupport 2.3.2", :groups => :rack
+ should_be_installed "rack 1.0.0", :groups => :rack
+ end
end
end