diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-29 09:10:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-29 09:10:15 +0300 |
commit | fd3d0d4c2c5ecac651fdeff92a1f2e4c927e05e0 (patch) | |
tree | 14c2f2bfb622fe24c7a43dab377f57cc5e030233 /spec/services/projects/hashed_storage/rollback_repository_service_spec.rb | |
parent | ff3bb8c2ebda1a58974f2955e70b24f35f25e011 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/projects/hashed_storage/rollback_repository_service_spec.rb')
-rw-r--r-- | spec/services/projects/hashed_storage/rollback_repository_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/projects/hashed_storage/rollback_repository_service_spec.rb b/spec/services/projects/hashed_storage/rollback_repository_service_spec.rb index af128a532b9..23e776b72bc 100644 --- a/spec/services/projects/hashed_storage/rollback_repository_service_spec.rb +++ b/spec/services/projects/hashed_storage/rollback_repository_service_spec.rb @@ -96,13 +96,13 @@ RSpec.describe Projects::HashedStorage::RollbackRepositoryService, :clean_gitlab end it 'handles Gitlab::Git::CommandError' do - expect(project).to receive(:write_repository_config).and_raise(Gitlab::Git::CommandError) + expect(project).to receive(:set_full_path).and_raise(Gitlab::Git::CommandError) expect { service.execute }.not_to raise_exception end it 'ensures rollback when Gitlab::Git::CommandError' do - expect(project).to receive(:write_repository_config).and_raise(Gitlab::Git::CommandError) + expect(project).to receive(:set_full_path).and_raise(Gitlab::Git::CommandError) expect(service).to receive(:rollback_folder_move).and_call_original service.execute |