Added specs for Repository#rm_tag

This commit is contained in:
Yorick Peterse 2016-03-08 17:53:23 +01:00
parent 177025b5dd
commit 6857b92fab
1 changed files with 11 additions and 0 deletions

View File

@ -659,4 +659,15 @@ describe Repository, models: true do
repository.rm_branch(user, 'feature')
end
end
describe '#rm_tag' do
it 'removes a tag' do
expect(repository).to receive(:before_remove_tag)
expect_any_instance_of(Gitlab::Shell).to receive(:rm_tag).
with(repository.path_with_namespace, '8.5')
repository.rm_tag('8.5')
end
end
end