diff options
| author | Robert | 2017-07-20 17:07:32 +0200 | 
|---|---|---|
| committer | Robert | 2017-07-20 17:07:32 +0200 | 
| commit | f8928e65d757414bde1c8a3b26c23b572f0e9221 (patch) | |
| tree | 59dda905e779a783ffaf2218570f01e83d030e88 /spec/workers | |
| parent | f11826644ecab4aa4217e3e06115b4af396ebd50 (diff) | |
| download | chouette-core-f8928e65d757414bde1c8a3b26c23b572f0e9221.tar.bz2 | |
Refs: #3507@1h; Merge with 1726_... and validations on NetexImport
Diffstat (limited to 'spec/workers')
| -rw-r--r-- | spec/workers/workbench_import_worker_spec.rb | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/spec/workers/workbench_import_worker_spec.rb b/spec/workers/workbench_import_worker_spec.rb index bfe631fc4..e87e6873f 100644 --- a/spec/workers/workbench_import_worker_spec.rb +++ b/spec/workers/workbench_import_worker_spec.rb @@ -6,6 +6,7 @@ RSpec.describe WorkbenchImportWorker, type: [:worker, :request] do    let( :referential ){ import.referential }    let( :api_key ){ build_stubbed :api_key, referential: referential } +  # /workbenches/:workbench_id/imports/:id/download    let( :path ){ download_workbench_import_path(workbench, import) }    let( :result ){ import.file.read } @@ -14,11 +15,9 @@ RSpec.describe WorkbenchImportWorker, type: [:worker, :request] do      allow(Import).to receive(:find).with(import.id).and_return(import)    end    it 'downloads a zip file' do -    # /workbenches/:workbench_id/imports/:id/download      stub_request(:get, path)        .with(headers: authorization_token_header(api_key))        .to_return(body: result) -    # WTH was I trying to test ;) Ah yeah HTTP into download      worker.perform import.id      expect( worker.downloaded ).to eq( result )    end | 
