Add test for GeoAPI driver lib

This commit is contained in:
Xavier J 2016-12-16 10:42:34 +01:00
parent 0aedeba125
commit f21f151c9c
4 changed files with 171 additions and 8 deletions

View file

@ -11,7 +11,15 @@ module Carto
end
def self.pays
File.open('lib/carto/geo_api/pays.json').read
File.open('app/lib/carto/geo_api/pays.json').read
end
def self.departements_url
'https://geo.api.gouv.fr/departements'
end
def self.regions_url
'https://geo.api.gouv.fr/regions'
end
private
@ -22,13 +30,6 @@ module Carto
nil
end
def self.departements_url
'https://geo.api.gouv.fr/departements'
end
def self.regions_url
'https://geo.api.gouv.fr/regions'
end
end
end
end