Enable the Layout/DotPosition cop
This commit is contained in:
parent
f2cf32a15c
commit
a62d5322b6
7 changed files with 30 additions and 30 deletions
|
@ -5,10 +5,10 @@ describe CARTO::SGMAP::API do
|
|||
subject { described_class.search_qp(geojson) }
|
||||
|
||||
before do
|
||||
stub_request(:post, "https://apicarto.sgmap.fr/quartiers-prioritaires/search").
|
||||
with(:body => /.*/,
|
||||
:headers => {'Content-Type'=>'application/json'}).
|
||||
to_return(status: status, body: body)
|
||||
stub_request(:post, "https://apicarto.sgmap.fr/quartiers-prioritaires/search")
|
||||
.with(:body => /.*/,
|
||||
:headers => {'Content-Type'=>'application/json'})
|
||||
.to_return(status: status, body: body)
|
||||
end
|
||||
context 'when geojson is empty' do
|
||||
let(:geojson) { '' }
|
||||
|
@ -53,10 +53,10 @@ describe CARTO::SGMAP::API do
|
|||
subject { described_class.search_cadastre(geojson) }
|
||||
|
||||
before do
|
||||
stub_request(:post, "https://apicarto.sgmap.fr/cadastre/geometrie").
|
||||
with(:body => /.*/,
|
||||
:headers => {'Content-Type'=>'application/json'}).
|
||||
to_return(status: status, body: body)
|
||||
stub_request(:post, "https://apicarto.sgmap.fr/cadastre/geometrie")
|
||||
.with(:body => /.*/,
|
||||
:headers => {'Content-Type'=>'application/json'})
|
||||
.to_return(status: status, body: body)
|
||||
end
|
||||
context 'when geojson is empty' do
|
||||
let(:geojson) { '' }
|
||||
|
|
|
@ -4,10 +4,10 @@ describe CARTO::SGMAP::Cadastre::Adapter do
|
|||
subject { described_class.new(coordinates).to_params }
|
||||
|
||||
before do
|
||||
stub_request(:post, "https://apicarto.sgmap.fr/cadastre/geometrie").
|
||||
with(:body => /.*/,
|
||||
:headers => {'Content-Type' => 'application/json'}).
|
||||
to_return(status: status, body: body)
|
||||
stub_request(:post, "https://apicarto.sgmap.fr/cadastre/geometrie")
|
||||
.with(:body => /.*/,
|
||||
:headers => {'Content-Type' => 'application/json'})
|
||||
.to_return(status: status, body: body)
|
||||
end
|
||||
|
||||
context 'coordinates are filled' do
|
||||
|
|
|
@ -4,10 +4,10 @@ describe CARTO::SGMAP::QuartiersPrioritaires::Adapter do
|
|||
subject { described_class.new(coordinates).to_params }
|
||||
|
||||
before do
|
||||
stub_request(:post, "https://apicarto.sgmap.fr/quartiers-prioritaires/search").
|
||||
with(:body => /.*/,
|
||||
:headers => {'Content-Type' => 'application/json'}).
|
||||
to_return(status: status, body: body)
|
||||
stub_request(:post, "https://apicarto.sgmap.fr/quartiers-prioritaires/search")
|
||||
.with(:body => /.*/,
|
||||
:headers => {'Content-Type' => 'application/json'})
|
||||
.to_return(status: status, body: body)
|
||||
end
|
||||
|
||||
context 'coordinates are filled' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue