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/keys/destroy_service_spec.rb')
-rw-r--r--spec/services/keys/destroy_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/keys/destroy_service_spec.rb b/spec/services/keys/destroy_service_spec.rb
index 59ce4a941c7..dd40f9d73fd 100644
--- a/spec/services/keys/destroy_service_spec.rb
+++ b/spec/services/keys/destroy_service_spec.rb
@@ -8,7 +8,7 @@ RSpec.describe Keys::DestroyService do
subject { described_class.new(user) }
it 'destroys a key' do
- key = create(:key)
+ key = create(:personal_key)
expect { subject.execute(key) }.to change(Key, :count).by(-1)
end