diff options
author | Carl Lerche <carllerche@mac.com> | 2010-08-04 15:59:09 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-08-04 17:17:36 -0700 |
commit | 1e152cdb6197eecae2fbff8783f82b98d9601b23 (patch) | |
tree | a097803f8c9cea470479cadada55dd821a563133 /spec/update | |
parent | 743279832bcd0a6668d603dd285de27bc7095445 (diff) | |
download | bundler-1e152cdb6197eecae2fbff8783f82b98d9601b23.tar.gz |
Eager unlock dependencies of gems specified with `bundle update gem_name`
Diffstat (limited to 'spec/update')
-rw-r--r-- | spec/update/gems_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/update/gems_spec.rb b/spec/update/gems_spec.rb index 52338813..dd3081fa 100644 --- a/spec/update/gems_spec.rb +++ b/spec/update/gems_spec.rb @@ -45,6 +45,31 @@ describe "bundle update" do end end +describe "bundle update in more complicated situations" do + before :each do + build_repo2 + end + + it "will eagerly unlock dependencies of a specified gem" do + install_gemfile <<-G + source "file://#{gem_repo2}" + + gem "thin" + gem "rack-obama" + G + + update_repo2 do + build_gem "thin" , '2.0' do |s| + s.add_dependency "rack" + end + end + + bundle "update thin" + puts out + should_be_installed "thin 2.0", "rack 1.2", "rack-obama 1.0" + end +end + describe "bundle update without a Gemfile.lock" do it "should not explode" do build_repo2 |