summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMyron Marston <myron.marston@gmail.com>2010-08-29 00:32:51 -0700
committerwycats <wycats@gmail.com>2010-08-29 16:56:56 +0900
commitece5bc6d31d018d00f4449a249fe0bc2738ac091 (patch)
treed4b931085ab4de6bbd3999a958f1edfc8adf786c /spec
parent246b19238ed622536b38e09af3e9beee05ce5193 (diff)
downloadbundler-ece5bc6d31d018d00f4449a249fe0bc2738ac091.tar.gz
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.
Diffstat (limited to 'spec')
-rw-r--r--spec/other/gem_helper_spec.rb3
1 files changed, 3 insertions, 0 deletions
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}`