summaryrefslogtreecommitdiff
path: root/spec/other
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:58:23 +0900
commit7e7e00ec205a0358586d35c45f40c80b9c3c0794 (patch)
tree92d3ab42c4b87361d6c8c8495a1d9a30e93bb07e /spec/other
parent912c7d992a9b5466f670cf5d27589e5663e4bed0 (diff)
downloadbundler-7e7e00ec205a0358586d35c45f40c80b9c3c0794.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/other')
-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}`