diff options
Diffstat (limited to 'spec/services/bulk_imports/file_download_service_spec.rb')
-rw-r--r-- | spec/services/bulk_imports/file_download_service_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/services/bulk_imports/file_download_service_spec.rb b/spec/services/bulk_imports/file_download_service_spec.rb index 1734ea45507..8b9304065de 100644 --- a/spec/services/bulk_imports/file_download_service_spec.rb +++ b/spec/services/bulk_imports/file_download_service_spec.rb @@ -82,18 +82,17 @@ RSpec.describe BulkImports::FileDownloadService, feature_category: :importers do context 'when content-type is not valid' do let(:content_type) { 'invalid' } - let(:import_logger) { instance_double(Gitlab::Import::Logger) } + let(:import_logger) { instance_double(BulkImports::Logger) } before do - allow(Gitlab::Import::Logger).to receive(:build).and_return(import_logger) + allow(BulkImports::Logger).to receive(:build).and_return(import_logger) allow(import_logger).to receive(:warn) end it 'logs and raises an error' do expect(import_logger).to receive(:warn).once.with( message: 'Invalid content type', - response_headers: headers, - importer: 'gitlab_migration' + response_headers: headers ) expect { subject.execute }.to raise_error(described_class::ServiceError, 'Invalid content type') |