summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-01-05 02:53:45 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-01-05 02:53:45 +0800
commite01c692a35d817c09416356b549f473f63d78dc8 (patch)
tree188eec336302d0aa314f19817ddd793df7a61950 /spec/models
parent99ac0935271b1e99f4512e496104219045f1018e (diff)
downloadgitlab-ce-e01c692a35d817c09416356b549f473f63d78dc8.tar.gz
Remove tag with git hooks
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/repository_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb
index b1fee342b57..0f43c5c019a 100644
--- a/spec/models/repository_spec.rb
+++ b/spec/models/repository_spec.rb
@@ -1419,9 +1419,10 @@ describe Repository, models: true do
describe '#rm_tag' do
it 'removes a tag' do
expect(repository).to receive(:before_remove_tag)
- expect(repository.rugged.tags).to receive(:delete).with('v1.1.0')
- repository.rm_tag('v1.1.0')
+ repository.rm_tag(create(:user), 'v1.1.0')
+
+ expect(repository.find_tag('v1.1.0')).to be_nil
end
end