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

@@ -57,4 +57,9 @@ module DocumentParser
end
variants
end
def dni?(document_type)
document_type.to_s == "1"
end
end