Skip to content

Conversation

@thdaraujo
Copy link
Contributor

@thdaraujo thdaraujo commented Nov 1, 2025

Fixes a flaky spec on faker/default/test_faker_id_number.rb.

The assertion expected a prefix date with year in the 1900-1999 range, but some birthdays in year >2000 would fail. They would be converted incorrectly, for example:

Date.parse("19002902")
#=> invalid date (Date::Error)

Failed run example: link.

@thdaraujo thdaraujo self-assigned this Nov 1, 2025
@thdaraujo thdaraujo changed the title test: fix flaky test on +Faker::IdNumber+ test: fix flaky test on Faker::IdNumber Nov 1, 2025
@thdaraujo thdaraujo merged commit 5fcd9e9 into main Nov 1, 2025
8 checks passed
@thdaraujo thdaraujo deleted the ta/fix-flaky-test-on-idnumber branch November 1, 2025 23:34
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.

3 participants