summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-09 15:40:33 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-03-09 15:40:33 -0800
commitcbf7902fe9d395a1a77b1bb2eb5721ad12e84dcb (patch)
treec41450f436b79b9e53ed94eb4af3c203e95a3e71
parent3685d0ba3740af853943aabab3d2e56ae8a9e7d7 (diff)
downloadbundler-cbf7902fe9d395a1a77b1bb2eb5721ad12e84dcb.tar.gz
Add more specs for multiple groups
-rw-r--r--spec/install/gems_spec.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/spec/install/gems_spec.rb b/spec/install/gems_spec.rb
index a41bdf6c49..08be9ea61c 100644
--- a/spec/install/gems_spec.rb
+++ b/spec/install/gems_spec.rb
@@ -530,6 +530,38 @@ describe "bundle install with gem sources" do
bundle "install --without lolercoaster"
should_be_installed "rack 1.0.0", "activesupport 2.3.5"
end
+
+ describe "with a gem defined multiple times in different groups" do
+ before :each do
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack"
+
+ group :emo do
+ gem "activesupport", "2.3.5"
+ end
+
+ group :lolercoaster do
+ gem "activesupport", "2.3.5"
+ end
+ G
+ end
+
+ it "installs the gem w/ option --without emo" do
+ bundle "install --without emo"
+ should_be_installed "activesupport 2.3.5"
+ end
+
+ it "installs the gem w/ option --without lolercoaster" do
+ bundle "install --without lolercoaster"
+ should_be_installed "activesupport 2.3.5"
+ end
+
+ it "does not install the gem w/ option --without emo lolercoaster" do
+ bundle "install --without emo lolercoaster"
+ should_not_be_installed "activesupport 2.3.5"
+ end
+ end
end
end
end