From 0da8d9449d67177eb7ebdb5eb28e1ae041775882 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Mon, 2 Sep 2024 17:13:43 +0200 Subject: [PATCH] use other siret for factory --- spec/controllers/administrateurs/services_controller_spec.rb | 4 ++-- spec/factories/service.rb | 2 +- spec/models/service_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/controllers/administrateurs/services_controller_spec.rb b/spec/controllers/administrateurs/services_controller_spec.rb index 5b7b0afaf..380d23787 100644 --- a/spec/controllers/administrateurs/services_controller_spec.rb +++ b/spec/controllers/administrateurs/services_controller_spec.rb @@ -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)) diff --git a/spec/factories/service.rb b/spec/factories/service.rb index 10772188b..353fcb93c 100644 --- a/spec/factories/service.rb +++ b/spec/factories/service.rb @@ -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 } diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index 55d3fbc04..74b6cad79 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -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