diff options
| author | Xinhui | 2017-08-23 14:53:14 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-08-23 14:53:14 +0200 | 
| commit | 6fe3c8ac3f4120fcab85a593062a8c0785b50839 (patch) | |
| tree | b7cb9c6aed5cc365d3c0661b019e0f71b53e16bd | |
| parent | 1d496326ca9177bd1b9b5202eaa5f6137bfd7fa6 (diff) | |
| download | chouette-core-6fe3c8ac3f4120fcab85a593062a8c0785b50839.tar.bz2 | |
Refactoring spec api import#create
| -rw-r--r-- | spec/controllers/api/v1/imports_controller_spec.rb | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/spec/controllers/api/v1/imports_controller_spec.rb b/spec/controllers/api/v1/imports_controller_spec.rb index f9593df99..266b25486 100644 --- a/spec/controllers/api/v1/imports_controller_spec.rb +++ b/spec/controllers/api/v1/imports_controller_spec.rb @@ -28,7 +28,9 @@ RSpec.describe Api::V1::ImportsController, type: :controller do        let(:file) { fixture_file_upload('multiple_references_import.zip') }        it 'should be successful' do -        post :create, workbench_id: workbench.id, workbench_import: {file: file, creator: 'test'}, format: :json +        expect { +          post :create, workbench_id: workbench.id, workbench_import: {file: file, creator: 'test'}, format: :json +        }.to change{WorkbenchImport.count}.by(1)          expect(response).to be_success        end      end | 
