Skip to content

Commit

Permalink
fix: remove useless spec
Browse files Browse the repository at this point in the history
  • Loading branch information
yhru committed Nov 19, 2024
1 parent b305b2a commit 130e27a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions spec/controllers/champs/siret_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 130e27a

Please sign in to comment.