diff options
Diffstat (limited to 'spec/services/projects/import_export/export_service_spec.rb')
-rw-r--r-- | spec/services/projects/import_export/export_service_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/services/projects/import_export/export_service_spec.rb b/spec/services/projects/import_export/export_service_spec.rb index 5f496cb1e56..19891341311 100644 --- a/spec/services/projects/import_export/export_service_spec.rb +++ b/spec/services/projects/import_export/export_service_spec.rb @@ -119,9 +119,7 @@ describe Projects::ImportExport::ExportService do end it 'notifies logger' do - allow(Rails.logger).to receive(:error) - - expect(Rails.logger).to receive(:error) + expect(service.instance_variable_get(:@logger)).to receive(:error) end end end @@ -149,7 +147,7 @@ describe Projects::ImportExport::ExportService do end it 'notifies logger' do - expect(Rails.logger).to receive(:error) + expect(service.instance_variable_get(:@logger)).to receive(:error) end it 'does not call the export strategy' do |