Allow instructeurs to download a GeoJSON document for a given dossier

This commit is contained in:
Paul Chavard 2020-04-30 15:49:43 +02:00
parent ef2d9e1138
commit 843e033c38
8 changed files with 102 additions and 5 deletions

View file

@ -26,7 +26,7 @@ describe ChampSerializer do
context 'when type champ is carte' do
let(:champ) { create(:champ_carte, value: value, geo_areas: [geo_area].compact) }
let(:value) { nil }
let(:geo_area) { create(:geo_area, geometry: geo_json) }
let(:geo_area) { create(:geo_area, :cadastre, geometry: geo_json) }
let(:geo_json) do
{
"type" => 'MultiPolygon',