From eba5de4becf8e31db52321873feda94767dff972 Mon Sep 17 00:00:00 2001 From: Christian Lautier <15379878+maatinito@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:04:37 -1000 Subject: [PATCH] =?UTF-8?q?fix=20SIRET=20renamings=20to=20Num=C3=A9ro=20TA?= =?UTF-8?q?HITI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/shared/dossiers/_identite_entreprise.html.haml | 2 +- spec/controllers/champs/siret_controller_spec.rb | 2 +- .../shared/dossiers/_identite_entreprise.html.haml_spec.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/shared/dossiers/_identite_entreprise.html.haml b/app/views/shared/dossiers/_identite_entreprise.html.haml index 93e815f6eab..79845792db7 100644 --- a/app/views/shared/dossiers/_identite_entreprise.html.haml +++ b/app/views/shared/dossiers/_identite_entreprise.html.haml @@ -29,7 +29,7 @@ - unless local_assigns[:short_identity] - if etablissement.entreprise.siret_siege_social.present? && etablissement.siret != etablissement.entreprise.siret_siege_social - = render Dossiers::RowShowComponent.new(label: "Numero TAHITI du siège social") do |c| + = render Dossiers::RowShowComponent.new(label: "Numéro TAHITI du siège social") do |c| - c.with_value do %p = pretty_siret(etablissement.entreprise.siret_siege_social) diff --git a/spec/controllers/champs/siret_controller_spec.rb b/spec/controllers/champs/siret_controller_spec.rb index 47123ec2ed7..c181139e588 100644 --- a/spec/controllers/champs/siret_controller_spec.rb +++ b/spec/controllers/champs/siret_controller_spec.rb @@ -133,7 +133,7 @@ end end - context 'when the Numero TAHITI is valid but unknown', vcr: { cassette_name: 'pf_api_entreprise_not_found' } do + context 'when the Numéro TAHITI is valid but unknown', vcr: { cassette_name: 'pf_api_entreprise_not_found' } do let(:siret) { '111111' } let(:api_etablissement_status) { 404 } diff --git a/spec/views/shared/dossiers/_identite_entreprise.html.haml_spec.rb b/spec/views/shared/dossiers/_identite_entreprise.html.haml_spec.rb index 78bcfcb0c5c..84a8e735e27 100644 --- a/spec/views/shared/dossiers/_identite_entreprise.html.haml_spec.rb +++ b/spec/views/shared/dossiers/_identite_entreprise.html.haml_spec.rb @@ -73,7 +73,7 @@ it 'shows both sirets' do expect(subject).to include("123 456 789 00001") - expect(subject).to include("SIRET du siège social") + expect(subject).to include("Numéro TAHITI du siège social") expect(subject).to include("987 654 321 00001") end end @@ -82,7 +82,7 @@ let(:siret_siege_social) { nil } it 'does not duplicate siret' do - expect(subject).not_to include("SIRET du siège social") + expect(subject).not_to include("Numéro TAHITI du siège social") end end end