diff options
author | shtirlic <serg@podtynnyi.com> | 2012-11-12 03:35:36 +0400 |
---|---|---|
committer | shtirlic <serg@podtynnyi.com> | 2012-11-12 03:35:36 +0400 |
commit | 8289ebf2a2e401d0148a2b1a7546ed598ccefaa3 (patch) | |
tree | bb8c7c522eaa82fad44f8f6fc28a6057081b7b00 /spec/bundler | |
parent | 15fe70b01b20a508acfd42d1ef7386593a1d23a2 (diff) | |
download | bundler-8289ebf2a2e401d0148a2b1a7546ed598ccefaa3.tar.gz |
Make rake release task to re-use a tag
Closes #2155
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/gem_helper_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/bundler/gem_helper_spec.rb b/spec/bundler/gem_helper_spec.rb index 1d6eb5aec9..9dc62b2944 100644 --- a/spec/bundler/gem_helper_spec.rb +++ b/spec/bundler/gem_helper_spec.rb @@ -169,6 +169,23 @@ describe "Bundler::GemHelper tasks" do } @helper.release_gem end + + it "releases even if tag already exists" do + mock_build_message + mock_confirm_message("This tag has already been committed to the repo.") + + @helper.should_receive(:rubygem_push).with(bundled_app('test/pkg/test-0.0.1.gem').to_s) + + Dir.chdir(gem_repo1) { + `git init --bare` + } + Dir.chdir(@app) { + `git commit -a -m "another commit"` + `git tag -a -m \"Version 0.0.1\" v0.0.1` + } + @helper.release_gem + end + end end end |