use other siret for factory
This commit is contained in:
parent
b5051a25d9
commit
0da8d9449d
3 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ describe Administrateurs::ServicesController, type: :controller do
|
|||
telephone: '1234',
|
||||
horaires: 'horaires',
|
||||
adresse: 'adresse',
|
||||
siret: "35600082800018"
|
||||
siret: "35600011719156"
|
||||
},
|
||||
procedure_id: procedure.id
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ describe Administrateurs::ServicesController, type: :controller do
|
|||
expect(Service.last.telephone).to eq('1234')
|
||||
expect(Service.last.horaires).to eq('horaires')
|
||||
expect(Service.last.adresse).to eq('adresse')
|
||||
expect(Service.last.siret).to eq('35600082800018')
|
||||
expect(Service.last.siret).to eq('35600011719156')
|
||||
expect(APIEntreprise::ServiceJob).to have_been_enqueued.with(Service.last.id)
|
||||
|
||||
expect(response).to redirect_to(admin_services_path(procedure_id: procedure.id))
|
||||
|
|
|
@ -9,7 +9,7 @@ FactoryBot.define do
|
|||
telephone { '1234' }
|
||||
horaires { 'de 9 h à 18 h' }
|
||||
adresse { 'adresse' }
|
||||
siret { '35600082800018' }
|
||||
siret { '35600011719156' }
|
||||
etablissement_infos { { adresse: "75 rue du Louvre\n75002\nPARIS\nFRANCE" } }
|
||||
etablissement_lat { 48.87 }
|
||||
etablissement_lng { 2.34 }
|
||||
|
|
|
@ -13,7 +13,7 @@ describe Service, type: :model do
|
|||
horaires: 'du lundi au vendredi',
|
||||
adresse: '12 rue des schtroumpfs',
|
||||
administrateur_id: administrateur.id,
|
||||
siret: "35600082800018"
|
||||
siret: "35600011719156"
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue