perf(carto): use json schema to validate geojson instead of rgeo
This commit is contained in:
parent
3d3b90c4fb
commit
c4432b1b47
11 changed files with 1312 additions and 99 deletions
|
@ -46,7 +46,7 @@ describe Champs::CarteController, type: :controller do
|
|||
end
|
||||
|
||||
context 'error' do
|
||||
let(:feature) { attributes_for(:geo_area, :invalid_right_hand_rule_polygon) }
|
||||
let(:feature) { attributes_for(:geo_area, :invalid_point) }
|
||||
let(:params) do
|
||||
{
|
||||
champ_id: champ.id,
|
||||
|
@ -92,7 +92,7 @@ describe Champs::CarteController, type: :controller do
|
|||
end
|
||||
|
||||
context 'error' do
|
||||
let(:feature) { attributes_for(:geo_area, :invalid_right_hand_rule_polygon) }
|
||||
let(:feature) { attributes_for(:geo_area, :invalid_point) }
|
||||
|
||||
it { expect(response.status).to eq 422 }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue