diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-04 16:17:31 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-07 09:57:11 +0100 |
commit | d42374824deebed647698f5b9f51fa196fb07242 (patch) | |
tree | d6be0692dc8f9ba0695d286da7bb47dd26a5a277 /spec/install | |
parent | 0745c69dc175927e621b2cfdc78849b3417b74eb (diff) | |
download | bundler-d42374824deebed647698f5b9f51fa196fb07242.tar.gz |
Remove redundant installs and raise if they fail
Diffstat (limited to 'spec/install')
-rw-r--r-- | spec/install/git_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb index 91958e55dc..930d8675cf 100644 --- a/spec/install/git_spec.rb +++ b/spec/install/git_spec.rb @@ -5,11 +5,10 @@ RSpec.describe "bundle install" do it "displays the revision hash of the gem repository", :bundler => "< 3" do build_git "foo", "1.0", :path => lib_path("foo") - install_gemfile <<-G + install_gemfile! <<-G gem "foo", :git => "#{file_uri_for(lib_path("foo"))}" G - bundle! :install expect(out).to include("Using foo 1.0 from #{file_uri_for(lib_path("foo"))} (at master@#{revision_for(lib_path("foo"))[0..6]})") expect(the_bundle).to include_gems "foo 1.0", :source => "git@#{lib_path("foo")}" end @@ -25,7 +24,6 @@ RSpec.describe "bundle install" do gem "foo", :git => "#{file_uri_for(lib_path("foo"))}", :ref => "master~2" G - bundle! :install expect(out).to include("Using foo 1.0 from #{file_uri_for(lib_path("foo"))} (at master~2@#{rev})") expect(the_bundle).to include_gems "foo 1.0", :source => "git@#{lib_path("foo")}" @@ -69,7 +67,7 @@ RSpec.describe "bundle install" do build_git "gems", :path => lib_path("gems"), :gemspec => false end - install_gemfile <<-G + install_gemfile! <<-G source "#{file_uri_for(gem_repo2)}" gem "foo", :git => "#{file_uri_for(lib_path("gems"))}", :glob => "foo/*.gemspec" gem "zebra", :git => "#{file_uri_for(lib_path("gems"))}", :glob => "zebra/*.gemspec" |