Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/groups/deploy_tokens/destroy_service_spec.rb')
-rw-r--r--spec/services/groups/deploy_tokens/destroy_service_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/services/groups/deploy_tokens/destroy_service_spec.rb b/spec/services/groups/deploy_tokens/destroy_service_spec.rb
new file mode 100644
index 00000000000..d4ef5963558
--- /dev/null
+++ b/spec/services/groups/deploy_tokens/destroy_service_spec.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe Groups::DeployTokens::DestroyService do
+ it_behaves_like 'a deploy token deletion service' do
+ let_it_be(:entity) { create(:group) }
+ let_it_be(:deploy_token_class) { GroupDeployToken }
+ let_it_be(:deploy_token) { create(:deploy_token, :group, groups: [entity]) }
+ end
+end