diff options
| author | Zog | 2018-03-07 07:50:02 +0100 | 
|---|---|---|
| committer | Zog | 2018-03-12 12:00:13 +0100 | 
| commit | b810deb08cadd56caeb76eb81cff363458bb79a3 (patch) | |
| tree | 6fd0c1bc383a9fa501666f6d86cee2ec06c573cd /spec/requests | |
| parent | 7b53b4c86d0469c21b54f4f974fbae5fc205ed0f (diff) | |
| download | chouette-core-b810deb08cadd56caeb76eb81cff363458bb79a3.tar.bz2 | |
Refs #6133; Fix specs
Diffstat (limited to 'spec/requests')
| -rw-r--r-- | spec/requests/api/v1/netex_import_spec.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/spec/requests/api/v1/netex_import_spec.rb b/spec/requests/api/v1/netex_import_spec.rb index 8597c1d32..14dac9a25 100644 --- a/spec/requests/api/v1/netex_import_spec.rb +++ b/spec/requests/api/v1/netex_import_spec.rb @@ -1,4 +1,4 @@ -RSpec.describe "NetexImport", type: :request do +RSpec.describe "Import::Netex", type: :request do    describe 'POST netex_imports' do @@ -39,7 +39,7 @@ RSpec.describe "NetexImport", type: :request do          post_request.(netex_import: legal_attributes)          expect( response ).to be_success          expect( json_response_body ).to eq( -          'id'             => NetexImport.last.id, +          'id'             => Import::Netex.last.id,            'referential_id' => Referential.last.id,            'workbench_id'   => workbench.id          ) @@ -51,7 +51,7 @@ RSpec.describe "NetexImport", type: :request do          create(:line, objectid: 'STIF:CODIFLIGNE:Line:C00108', line_referential: workbench.line_referential)          create(:line, objectid: 'STIF:CODIFLIGNE:Line:C00109', line_referential: workbench.line_referential) -        expect{ post_request.(netex_import: legal_attributes) }.to change{NetexImport.count}.by(1) +        expect{ post_request.(netex_import: legal_attributes) }.to change{Import::Netex.count}.by(1)        end        it 'creates a correct Referential', pending: 'see #5073' do @@ -96,7 +96,7 @@ RSpec.describe "NetexImport", type: :request do            end            it 'does not create an Import object' do -            expect{ post_request.(netex_import: illegal_attributes) }.not_to change{Import.count} +            expect{ post_request.(netex_import: illegal_attributes) }.not_to change{Import::Base.count}            end            it 'might not create a referential' do | 
