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

Improve specs related to Pseudo IBAN validation #246

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

rrundzansgc
Copy link
Contributor

For IBANs it is specified which validation methods should be called during validation (see "validations called" example group). Do the same thing for Pseudo IBANs, and also describe expected country specific validations.

For IBANs it is specified which validation methods should be called during validation (see "validations called" example group).
Do the same thing for Pseudo IBANs, and also describe expected country specific validations.
describe "validations called" do
after { iban.valid? }

specify { expect(iban).to receive(:valid_pseudo_iban?).at_least(1) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly a fan of testing internal methods but if this is existing and we find it valuable then its fine

@rrundzansgc rrundzansgc merged commit f0d8f87 into master Oct 3, 2023
4 checks passed
@rrundzansgc rrundzansgc deleted the more_pseudo_iban_specs branch October 3, 2023 09:43
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.

None yet

2 participants