specs: remove redundant line
This commit is contained in:
parent
8af86fb110
commit
270384f8dd
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,7 @@ feature 'As a User I wanna create a dossier' do
|
|||
login_as user, scope: :user
|
||||
visit commencer_path(procedure_path: procedure_with_siret.path)
|
||||
expect(page).to have_current_path(users_dossier_path(procedure_with_siret.dossiers.last.id.to_s))
|
||||
fill_in 'dossier-siret', with: siret
|
||||
|
||||
stub_request(:get, /https:\/\/entreprise.api.gouv.fr\/v2\/etablissements\/#{siret}?.*token=/)
|
||||
.to_return(status: 200, body: File.read('spec/support/files/etablissement.json'))
|
||||
stub_request(:get, /https:\/\/entreprise.api.gouv.fr\/v2\/entreprises\/#{siren}?.*token=/)
|
||||
|
@ -75,6 +75,7 @@ feature 'As a User I wanna create a dossier' do
|
|||
.to_return(status: 200, body: File.read('spec/support/files/exercices.json'))
|
||||
stub_request(:get, /https:\/\/entreprise.api.gouv.fr\/v2\/associations\/#{siret}?.*token=/)
|
||||
.to_return(status: 404, body: '')
|
||||
|
||||
page.find_by_id('dossier-siret').set siret
|
||||
page.find_by_id('submit-siret').click
|
||||
expect(page).to have_css('#recap-info-entreprise')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue