diff options
author | Boggs <hello.boggs@gmail.com> | 2016-06-26 00:56:25 +0800 |
---|---|---|
committer | Boggs <hello@boggs.xyz> | 2016-07-18 08:19:26 +0800 |
commit | 5ee2dcdf3a721dba97439c18fbad39c3bec94d9e (patch) | |
tree | 41a74b96c2ae60040393d7bb3b76122e550c28c3 /spec | |
parent | c90329aef3d0ff4b5e3d4434fd522c4e626c109c (diff) | |
download | bundler-5ee2dcdf3a721dba97439c18fbad39c3bec94d9e.tar.gz |
Add spec for only updating from pinned source
Diffstat (limited to 'spec')
-rw-r--r-- | spec/commands/update_spec.rb | 17 |
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 |