diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-01-05 02:53:45 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-01-05 02:53:45 +0800 |
commit | e01c692a35d817c09416356b549f473f63d78dc8 (patch) | |
tree | 188eec336302d0aa314f19817ddd793df7a61950 /spec/models | |
parent | 99ac0935271b1e99f4512e496104219045f1018e (diff) | |
download | gitlab-ce-e01c692a35d817c09416356b549f473f63d78dc8.tar.gz |
Remove tag with git hooks
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/repository_spec.rb | 5 |
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 |