changement du endpoint dans les tests

This commit is contained in:
clemkeirua 2019-07-23 15:37:23 +02:00
parent 99421545ab
commit 0818331319
3 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ describe ApiCarto::API do
subject { described_class.search_qp(geojson) } subject { described_class.search_qp(geojson) }
before do 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 => /.*/, .with(:body => /.*/,
:headers => { 'Content-Type' => 'application/json' }) :headers => { 'Content-Type' => 'application/json' })
.to_return(status: status, body: body) .to_return(status: status, body: body)
@ -53,7 +53,7 @@ describe ApiCarto::API do
subject { described_class.search_cadastre(geojson) } subject { described_class.search_cadastre(geojson) }
before do 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 => /.*/, .with(:body => /.*/,
:headers => { 'Content-Type' => 'application/json' }) :headers => { 'Content-Type' => 'application/json' })
.to_return(status: status, body: body) .to_return(status: status, body: body)

View file

@ -4,7 +4,7 @@ describe ApiCarto::CadastreAdapter do
subject { described_class.new(coordinates).results } subject { described_class.new(coordinates).results }
before do 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 => /.*/, .with(:body => /.*/,
:headers => { 'Content-Type' => 'application/json' }) :headers => { 'Content-Type' => 'application/json' })
.to_return(status: status, body: body) .to_return(status: status, body: body)

View file

@ -4,7 +4,7 @@ describe ApiCarto::QuartiersPrioritairesAdapter do
subject { described_class.new(coordinates).results } subject { described_class.new(coordinates).results }
before do 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 => /.*/, .with(:body => /.*/,
:headers => { 'Content-Type' => 'application/json' }) :headers => { 'Content-Type' => 'application/json' })
.to_return(status: status, body: body) .to_return(status: status, body: body)