Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements and Corrections: separated validations for CPF and CNPJ, added dependencies, updated tests to Rspec3, make validation keep original value, value normalization after validation & some bug fixes. #9

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

MauricioMoraes
Copy link

The CPNJ 00.000.000/0000-00 was been considered valid. Now the CNPJ fields are invalid when there are 14 or more repeated chars: (00...0, 11...1, ..., 99..9).

@MauricioMoraes
Copy link
Author

Added the missing option :message to the validation.

@MauricioMoraes MauricioMoraes changed the title Invalid CNPJ for repeated char inputs Improvements and Corrections: Separated validations for CPF, CNPJ; Added dependencies; Update tests to Rspec3 synthax; Validation not changing original value; Value normalization after validation & some bug fixes. Nov 13, 2015
@MauricioMoraes MauricioMoraes changed the title Improvements and Corrections: Separated validations for CPF, CNPJ; Added dependencies; Update tests to Rspec3 synthax; Validation not changing original value; Value normalization after validation & some bug fixes. Improvements and Corrections: separated validations for CPF and CNPJ, added dependencies, updated tests to Rspec3, make validation keep original value, value normalization after validation & some bug fixes. Nov 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants