diff options
Diffstat (limited to 'test/test_helper.rb')
| -rw-r--r-- | test/test_helper.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index e12bd9d..48b581d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -24,6 +24,22 @@ SE_ADDRESS = { "siafi" => "7107" }.freeze +# The band of a CEP that does not exist, as the API returns it on the 404. +# +# 25845000 is the DNE's own start for Areal and does not exist: `cep_ini` is +# the smallest CEP that really is there, one number above it. The 118 CEPs are +# scattered across the ~4,900 numbers up to `cep_fim`. +AREAL_FAIXA = { + "localidade" => "Areal", + "uf" => "RJ", + "estado" => "Rio de Janeiro", + "regiao" => "Sudeste", + "ibge" => "3300225", + "cep_ini" => "25845001", + "cep_fim" => "25849899", + "ceps" => 118 +}.freeze + CSV_HEADER = "cep,logradouro,complemento,unidade,bairro,localidade,uf,estado," \ "regiao,ibge,gia,ddd,siafi" |