diff options
Diffstat (limited to 'spec/services/projects/hashed_storage')
-rw-r--r-- | spec/services/projects/hashed_storage/migrate_repository_service_spec.rb | 4 | ||||
-rw-r--r-- | spec/services/projects/hashed_storage/rollback_repository_service_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/projects/hashed_storage/migrate_repository_service_spec.rb b/spec/services/projects/hashed_storage/migrate_repository_service_spec.rb index 47252bcf7a7..d0064873972 100644 --- a/spec/services/projects/hashed_storage/migrate_repository_service_spec.rb +++ b/spec/services/projects/hashed_storage/migrate_repository_service_spec.rb @@ -96,13 +96,13 @@ RSpec.describe Projects::HashedStorage::MigrateRepositoryService do 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 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 |