From 0818331319739d28aa8baaa0f58678a66071eaba Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Tue, 23 Jul 2019 15:37:23 +0200 Subject: [PATCH] changement du endpoint dans les tests --- spec/lib/api_carto/api_spec.rb | 4 ++-- spec/lib/api_carto/cadastre_adapter_spec.rb | 2 +- spec/lib/api_carto/quartiers_prioritaires_adapter_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/lib/api_carto/api_spec.rb b/spec/lib/api_carto/api_spec.rb index 900debfda..2e52a58b1 100644 --- a/spec/lib/api_carto/api_spec.rb +++ b/spec/lib/api_carto/api_spec.rb @@ -5,7 +5,7 @@ describe ApiCarto::API do subject { described_class.search_qp(geojson) } before do - stub_request(:post, "https://apicarto.sgmap.fr/quartiers-prioritaires/search") + stub_request(:post, "https://sandbox.geo.api.gouv.fr/apicarto/quartiers-prioritaires/search") .with(:body => /.*/, :headers => { 'Content-Type' => 'application/json' }) .to_return(status: status, body: body) @@ -53,7 +53,7 @@ describe ApiCarto::API do subject { described_class.search_cadastre(geojson) } before do - stub_request(:post, "https://apicarto.sgmap.fr/cadastre/geometrie") + stub_request(:post, "https://sandbox.geo.api.gouv.fr/apicarto/cadastre/geometrie") .with(:body => /.*/, :headers => { 'Content-Type' => 'application/json' }) .to_return(status: status, body: body) diff --git a/spec/lib/api_carto/cadastre_adapter_spec.rb b/spec/lib/api_carto/cadastre_adapter_spec.rb index 6aa2858ca..aaba3cae7 100644 --- a/spec/lib/api_carto/cadastre_adapter_spec.rb +++ b/spec/lib/api_carto/cadastre_adapter_spec.rb @@ -4,7 +4,7 @@ describe ApiCarto::CadastreAdapter do subject { described_class.new(coordinates).results } before do - stub_request(:post, "https://apicarto.sgmap.fr/cadastre/geometrie") + stub_request(:post, "https://sandbox.geo.api.gouv.fr/apicarto/cadastre/geometrie") .with(:body => /.*/, :headers => { 'Content-Type' => 'application/json' }) .to_return(status: status, body: body) diff --git a/spec/lib/api_carto/quartiers_prioritaires_adapter_spec.rb b/spec/lib/api_carto/quartiers_prioritaires_adapter_spec.rb index b4ac7ef3a..32f5eb60b 100644 --- a/spec/lib/api_carto/quartiers_prioritaires_adapter_spec.rb +++ b/spec/lib/api_carto/quartiers_prioritaires_adapter_spec.rb @@ -4,7 +4,7 @@ describe ApiCarto::QuartiersPrioritairesAdapter do subject { described_class.new(coordinates).results } before do - stub_request(:post, "https://apicarto.sgmap.fr/quartiers-prioritaires/search") + stub_request(:post, "https://sandbox.geo.api.gouv.fr/apicarto/quartiers-prioritaires/search") .with(:body => /.*/, :headers => { 'Content-Type' => 'application/json' }) .to_return(status: status, body: body)