gitlab-org--gitlab-foss/spec/services/protected_tags/destroy_service_spec.rb

20 lines
448 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe ProtectedTags::DestroyService do
let(:protected_tag) { create(:protected_tag) }
let(:project) { protected_tag.project }
let(:user) { project.owner }
describe '#execute' do
subject(:service) { described_class.new(project, user) }
it 'destroy a protected tag' do
service.execute(protected_tag)
expect(protected_tag).to be_destroyed
end
end
end