summaryrefslogtreecommitdiff
path: root/spec/commands/update_spec.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-08-19 18:08:52 -0400
committerSamuel Giddins <segiddins@segiddins.me>2017-08-20 16:18:26 -0400
commit9ed5fc491f5093a19a953f679e461556d28b43a7 (patch)
tree37c4050a8d792cdf6e5edfff994dd61d56f5c013 /spec/commands/update_spec.rb
parentaea4046b5b91b83b27f117822e1bd6c614da3e6e (diff)
downloadbundler-9ed5fc491f5093a19a953f679e461556d28b43a7.tar.gz
[Update] Avoid a normal update when running with only --bundlerseg-bundle-update-bundler-no-reresolve
Diffstat (limited to 'spec/commands/update_spec.rb')
-rw-r--r--spec/commands/update_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb
index 2e6abfa9a5..a488be536f 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -629,6 +629,27 @@ RSpec.describe "bundle update --ruby" do
end
end
+RSpec.describe "bundle update --bundler" do
+ it "updates the bundler version in the lockfile without re-resolving" do
+ build_repo4 do
+ build_gem "rack", "1.0"
+ end
+
+ install_gemfile! <<-G
+ source "file:#{gem_repo4}"
+ gem "rack"
+ G
+ lockfile lockfile.sub(Bundler::VERSION, "1.0.0")
+
+ FileUtils.rm_r gem_repo4
+
+ bundle! :update, :bundler => true, :verbose => true
+ expect(the_bundle).to include_gem "rack 1.0"
+
+ expect(the_bundle.locked_gems.bundler_version).to eq v(Bundler::VERSION)
+ end
+end
+
# these specs are slow and focus on integration and therefore are not exhaustive. unit specs elsewhere handle that.
RSpec.describe "bundle update conservative" do
context "patch and minor options" do