summaryrefslogtreecommitdiff
path: root/spec/update
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-10-16 11:24:56 -0700
committerAndre Arko <andre@arko.net>2010-10-16 14:07:34 -0700
commit8941aba0edce07b05dd134418905473ae1fc5e91 (patch)
tree2ac806c629e0045b2bd7b1c7de3a487574cdc2bf /spec/update
parent1116520a6d9252607642833dba9ebafbaab68adb (diff)
downloadbundler-8941aba0edce07b05dd134418905473ae1fc5e91.tar.gz
no more exceptions when a bundle wants a newer bundler
Diffstat (limited to 'spec/update')
-rw-r--r--spec/update/gems_spec.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/update/gems_spec.rb b/spec/update/gems_spec.rb
index 969b6ec945..9e31ef6b63 100644
--- a/spec/update/gems_spec.rb
+++ b/spec/update/gems_spec.rb
@@ -84,3 +84,29 @@ describe "bundle update without a Gemfile.lock" do
should_be_installed "rack 1.0.0"
end
end
+
+describe "bundle update when a gem depends on a newer version of bundler" do
+ before(:each) do
+ build_repo2 do
+ build_gem "rails", "3.0.1" do |s|
+ s.add_dependency "bundler", Bundler::VERSION.succ
+ end
+ end
+
+ gemfile <<-G
+ source "file://#{gem_repo2}"
+ gem "rails", "3.0.1"
+ G
+ end
+
+ it "should not explode" do
+ bundle "update"
+ err.should be_empty
+ end
+
+ it "should explain that bundler conflicted" do
+ bundle "update"
+ out.should_not =~ /In snapshot/
+ out.should =~ /Current Bundler version/
+ end
+end \ No newline at end of file