From 130e27a6e9958e5c46b781153f711de73133936f Mon Sep 17 00:00:00 2001 From: "maxim.joseau" Date: Tue, 19 Nov 2024 16:08:36 +0100 Subject: [PATCH] fix: remove useless spec --- spec/controllers/champs/siret_controller_spec.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/spec/controllers/champs/siret_controller_spec.rb b/spec/controllers/champs/siret_controller_spec.rb index 3d26760e9b8..82d9db73846 100644 --- a/spec/controllers/champs/siret_controller_spec.rb +++ b/spec/controllers/champs/siret_controller_spec.rb @@ -149,21 +149,6 @@ end end - context "when the SIRET/Numéro TAHITI has an invalid length" do - let(:invalid_lengths) { ['123', '123456', '12345678', '1234567890', '123456789012', '123456789012345'] } - - it 'displays a “SIRET is invalid” error message for lengths not equal to 9 or 14' do - invalid_lengths.each do |invalid_siret| - params[:dossier][:champs_public_attributes][champ.public_id][:value] = invalid_siret - - get :show, params: params, format: :turbo_stream - - expect(response.body).to include('Le numéro TAHITI doit comporter exactement 9 ou 14 caractères.') - expect(champ.reload.etablissement).to be_nil - end - end - end - context 'when the SIRET informations are retrieved successfully' do let(:siret) { '30613890001294' } let(:api_etablissement_status) { 200 }