diff options
author | Kir Shatrov <shatrov@me.com> | 2013-08-17 18:30:33 +0400 |
---|---|---|
committer | Xavier Shay <xavier@rhnh.net> | 2013-08-18 07:41:40 -0700 |
commit | 12eee6adc99fac9074c223e52c643ee59932dedf (patch) | |
tree | 0b873a3a0c0fe1a79003eed7977e5f3717e00464 /spec | |
parent | 80655dc10b46925b4dd5220dfdfbd1f94f90cf2d (diff) | |
download | bundler-12eee6adc99fac9074c223e52c643ee59932dedf.tar.gz |
When git gem install fails, don't suggest `gem install foo`
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 f970504d..ae9e5a14 100644 --- a/spec/install/git_spec.rb +++ b/spec/install/git_spec.rb @@ -853,6 +853,26 @@ describe "bundle install with git sources" do R expect(out).to eq("YES") end + + it "does not prompt to gem install if extension fails" do + build_git "foo" do |s| + s.add_dependency "rake" + s.extensions << "Rakefile" + s.write "Rakefile", <<-RUBY + task :default do + raise + end + RUBY + end + + install_gemfile <<-G + source "file://#{gem_repo1}" + gem "foo", :git => "#{lib_path('foo-1.0')}" + G + + expect(out).to include("An error occurred while installing foo (1.0)") + expect(out).not_to include("gem install foo") + end end end |