summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2018-03-06 20:45:22 -0800
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-13 18:21:05 +0200
commit5f6ee7a65f3231260ee846ae216c62fab70f7e6e (patch)
tree467463e4bce0dc827f739c4c5e4eeac3bb1f5bb8 /spec
parent3a83087a12fe4a42d2c5ae75da10993df469085e (diff)
downloadbundler-5f6ee7a65f3231260ee846ae216c62fab70f7e6e.tar.gz
Add a failing spec for not warning when a git gem updates ref but not version
Diffstat (limited to 'spec')
-rw-r--r--spec/commands/update_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb
index e6077f896f..04de26d8b6 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -473,6 +473,22 @@ 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 an explicitly updated git gem changes sha but not version" do
+ build_git "foo"
+
+ install_gemfile! <<-G
+ gem "foo", :git => '#{lib_path("foo-1.0")}'
+ G
+
+ update_git "foo" do |s|
+ s.write "lib/foo2.rb", "puts :foo2"
+ end
+
+ bundle! "update foo"
+
+ expect(last_command.stdboth).not_to include "attempted to update"
+ end
+
it "will not warn when changing gem sources but not versions" do
build_git "rack"