Enable the Layout/DotPosition cop

This commit is contained in:
gregoirenovel 2017-06-12 15:16:15 +02:00
parent f2cf32a15c
commit a62d5322b6
7 changed files with 30 additions and 30 deletions

View file

@ -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) { '' }

View file

@ -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

View file

@ -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