diff options
author | fatkodima <fatkodima123@gmail.com> | 2019-11-03 01:10:53 +0200 |
---|---|---|
committer | fatkodima <fatkodima123@gmail.com> | 2019-11-21 14:56:44 +0200 |
commit | 5c93791cf06e324e87875b6b25ee1baf0705dcf9 (patch) | |
tree | eb7d4ebcbe75b4e2595f4653208c4f48f7b6cd5e /spec | |
parent | a11c104c5b6222c018248b585cca2a4f340a9a71 (diff) | |
download | bundler-5c93791cf06e324e87875b6b25ee1baf0705dcf9.tar.gz |
Add :glob to git source uniqueness
Diffstat (limited to 'spec')
-rw-r--r-- | spec/install/git_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb index c16285241f..cc8bf70b03 100644 --- a/spec/install/git_spec.rb +++ b/spec/install/git_spec.rb @@ -61,5 +61,25 @@ RSpec.describe "bundle install" do expect(out).to include("Bundle complete!") end + + it "allows multiple gems from the same git source" do + build_repo2 do + build_lib "foo", "1.0", :path => lib_path("gems/foo") + build_lib "zebra", "2.0", :path => lib_path("gems/zebra") + build_git "gems", :path => lib_path("gems"), :gemspec => false + end + + install_gemfile <<-G + source "#{file_uri_for(gem_repo2)}" + gem "foo", :git => "#{lib_path("gems")}", :glob => "foo/*.gemspec" + gem "zebra", :git => "#{lib_path("gems")}", :glob => "zebra/*.gemspec" + G + + bundle "info foo" + expect(out).to include("* foo (1.0 #{revision_for(lib_path("gems"))[0..6]})") + + bundle "info zebra" + expect(out).to include("* zebra (2.0 #{revision_for(lib_path("gems"))[0..6]})") + end end end |