summaryrefslogtreecommitdiff
path: root/spec/commands/update_spec.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2018-03-06 20:44:57 -0800
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-13 18:21:05 +0200
commit3a83087a12fe4a42d2c5ae75da10993df469085e (patch)
tree2053b73f1d5e4c82192c68d08848cc6c78263279 /spec/commands/update_spec.rb
parenta53709556b95a914e874b22ed2116a46b0528852 (diff)
downloadbundler-3a83087a12fe4a42d2c5ae75da10993df469085e.tar.gz
[Update] Stop printing “failed to update” message when changing sources
Diffstat (limited to 'spec/commands/update_spec.rb')
-rw-r--r--spec/commands/update_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb
index 46c208db6c..e6077f896f 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -473,6 +473,23 @@ RSpec.describe "bundle update in more complicated situations" do
expect(the_bundle).to include_gems "thin 2.0", "rack 10.0", "rack-obama 1.0"
end
+ it "will not warn when changing gem sources but not versions" do
+ build_git "rack"
+
+ install_gemfile! <<-G
+ gem "rack", :git => '#{lib_path("rack-1.0")}'
+ G
+
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack"
+ G
+
+ bundle! "update rack"
+
+ expect(last_command.stdboth).not_to include "attempted to update"
+ end
+
it "will update only from pinned source" do
install_gemfile <<-G
source "file://#{gem_repo2}"