diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /spec/services/snippets/destroy_service_spec.rb | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'spec/services/snippets/destroy_service_spec.rb')
-rw-r--r-- | spec/services/snippets/destroy_service_spec.rb | 13 |
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 |