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/snippets/destroy_service_spec.rb')
-rw-r--r--spec/services/snippets/destroy_service_spec.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/services/snippets/destroy_service_spec.rb b/spec/services/snippets/destroy_service_spec.rb
index e53d00b9ca1..23765243dd6 100644
--- a/spec/services/snippets/destroy_service_spec.rb
+++ b/spec/services/snippets/destroy_service_spec.rb
@@ -41,7 +41,6 @@ RSpec.describe Snippets::DestroyService do
shared_examples 'deletes the snippet repository' do
it 'removes the snippet repository' do
expect(snippet.repository.exists?).to be_truthy
- expect(GitlabShellWorker).to receive(:perform_in)
expect_next_instance_of(Repositories::DestroyService) do |instance|
expect(instance).to receive(:execute).and_call_original
end
@@ -57,12 +56,6 @@ RSpec.describe Snippets::DestroyService do
end
it_behaves_like 'an unsuccessful destroy'
-
- it 'does not try to rollback repository' do
- expect(Repositories::DestroyRollbackService).not_to receive(:new)
-
- subject
- end
end
context 'when a destroy error is raised' do
@@ -71,12 +64,6 @@ RSpec.describe Snippets::DestroyService do
end
it_behaves_like 'an unsuccessful destroy'
-
- it 'attempts to rollback the repository' do
- expect(Repositories::DestroyRollbackService).to receive(:new).and_call_original
-
- subject
- end
end
context 'when repository is nil' do