diff options
author | Tim Moore <tmoore@incrementalism.net> | 2014-06-16 19:01:51 +1000 |
---|---|---|
committer | Tim Moore <tmoore@incrementalism.net> | 2014-11-07 08:25:03 +1100 |
commit | 3f6c21ba9fd2231a00acfa202fc28d7fa49d5c39 (patch) | |
tree | d8dde88bcb41e5ee63d5061f91a1a37f24190dfe | |
parent | f670cbc82a77082fe515b11789d148e720619681 (diff) | |
download | bundler-3f6c21ba9fd2231a00acfa202fc28d7fa49d5c39.tar.gz |
Fix gem_helper_spec.rb when run with git 2.0.
Git now errors out if you haven't set a default push behavior.
-rw-r--r-- | spec/bundler/gem_helper_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/bundler/gem_helper_spec.rb b/spec/bundler/gem_helper_spec.rb index 791a78b3b5..a1698fc585 100644 --- a/spec/bundler/gem_helper_spec.rb +++ b/spec/bundler/gem_helper_spec.rb @@ -162,6 +162,7 @@ describe Bundler::GemHelper do `git init` `git config user.email "you@example.com"` `git config user.name "name"` + `git config push.default simple` end end @@ -202,7 +203,7 @@ describe Bundler::GemHelper do mock_confirm_message "Pushed git commits and tags." expect(subject).to receive(:rubygem_push).with(app_gem_path.to_s) - Dir.chdir(app_path) { sys_exec("git push origin master", true) } + Dir.chdir(app_path) { sys_exec("git push -u origin master", true) } subject.release_gem end |