summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-07-18 11:42:25 +0900
committerHomu <homu@barosl.com>2016-07-18 11:42:25 +0900
commit0db993851608f961267bdbfcca37936a07df402f (patch)
tree41a74b96c2ae60040393d7bb3b76122e550c28c3
parentc90329aef3d0ff4b5e3d4434fd522c4e626c109c (diff)
parent5ee2dcdf3a721dba97439c18fbad39c3bec94d9e (diff)
downloadbundler-0db993851608f961267bdbfcca37936a07df402f.tar.gz
Auto merge of #4793 - b-ggs:4631-source-pinning, r=segiddins
Add spec for only updating from pinned source @indirect @RochesterinNYC --- Closes #4631
-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 5207278794..d86db69e8d 100644
--- a/spec/commands/update_spec.rb
+++ b/spec/commands/update_spec.rb
@@ -240,6 +240,23 @@ describe "bundle update in more complicated situations" do
bundle "update thin"
should_be_installed "thin 2.0", "rack 1.2", "rack-obama 1.0"
end
+
+ it "will update only from pinned source" do
+ install_gemfile <<-G
+ source "file://#{gem_repo2}"
+
+ source "file://#{gem_repo1}" do
+ gem "thin"
+ end
+ G
+
+ update_repo2 do
+ build_gem "thin", "2.0"
+ end
+
+ bundle "update"
+ should_be_installed "thin 1.0"
+ end
end
describe "bundle update without a Gemfile.lock" do