Boy Scout: Create document parser spec file

Regroup DocumentParser spec. Now they're duplicates in
local_census_specs and census_api_spec.

Move duplicate private method "dni?(document_type) from
LocalCensus and CensusAPI to DocumentParser
This commit is contained in:
taitus
2019-04-16 16:43:35 +02:00
committed by Javi Martín
parent a382f7c301
commit 090390c09f
6 changed files with 35 additions and 56 deletions

View File

@@ -119,8 +119,4 @@ class CensusApi
{get_habita_datos_response: {get_habita_datos_return: {datos_habitante: {}, datos_vivienda: {}}}}
end
def dni?(document_type)
document_type.to_s == "1"
end
end