diff options
author | Andre Arko <andre@arko.net> | 2015-03-29 19:36:39 +0100 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-03-29 19:36:39 +0100 |
commit | 2cd1ffa0adfb88b70192403dba4886409dab77c1 (patch) | |
tree | 4115058b6d3cd77fedd229d6d6f1c71ec99df659 | |
parent | f9dc9a456b098aa8e16cd6448de9e2a82c6199ea (diff) | |
download | bundler-2cd1ffa0adfb88b70192403dba4886409dab77c1.tar.gz |
a failing spec for #3520
-rw-r--r-- | spec/install/gems/sources_spec.rb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/spec/install/gems/sources_spec.rb b/spec/install/gems/sources_spec.rb index cca00a914d..af3e9c2e3e 100644 --- a/spec/install/gems/sources_spec.rb +++ b/spec/install/gems/sources_spec.rb @@ -319,4 +319,45 @@ describe "bundle install with gems on multiple sources" do should_be_installed("rack 1.0.0") end end + + context "when a single source contains multiple locked gems" do + before do + build_repo4 do + build_gem "foo", "0.2" + build_gem "bar", "0.1" + build_gem "bar", "0.3" + end + + lockfile <<-G + GEM + remote: file:/Users/andre/src/bundler/bundler/tmp/gems/remote1/ + remote: file:/Users/andre/src/bundler/bundler/tmp/gems/remote4/ + specs: + bar (0.1) + foo (0.1) + rack (1.0.0) + + PLATFORMS + ruby + + DEPENDENCIES + bar (= 0.1)! + foo (= 0.1)! + rack + G + end + + it "allows them to be unlocked separately" do + install_gemfile <<-G + source 'file://#{gem_repo1}' + gem 'rack' + gem 'foo', '~> 0.2', source: 'file://#{gem_repo4}' + gem 'bar', '~> 0.1', source: 'file://#{gem_repo4}' + G + + should_be_installed("foo 0.2") + should_be_installed("bar 0.1") + end + end + end |