From ece5bc6d31d018d00f4449a249fe0bc2738ac091 Mon Sep 17 00:00:00 2001 From: Myron Marston Date: Sun, 29 Aug 2010 00:32:51 -0700 Subject: Raise an error if the git push fails. We use the --quiet option so that we only get output for an error, and we assume any stderr output means the push failed. This closes #627. --- spec/other/gem_helper_spec.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec') diff --git a/spec/other/gem_helper_spec.rb b/spec/other/gem_helper_spec.rb index e1e22b308a..44ed4e0967 100644 --- a/spec/other/gem_helper_spec.rb +++ b/spec/other/gem_helper_spec.rb @@ -70,6 +70,9 @@ describe "Bundler::GemHelper tasks" do mock_confirm_message "Pushed git commits and tags" @helper.should_receive(:rubygem_push).with(bundled_app('test/pkg/test-0.0.1.gem').to_s) + @helper.should_receive(:perform_git_push).with(no_args).once + @helper.should_receive(:perform_git_push).with(' --tags').once + Dir.chdir(@app) { `git init --bare #{gem_repo1}` `git remote add origin file://#{gem_repo1}` -- cgit v1.2.1