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

feat: Add default qualifier to define_enum_for matcher #1627

Merged
merged 1 commit into from
Apr 26, 2024

Commits on Apr 12, 2024

  1. feat: Add default qualifier to define_enum_for matcher

    On this commit we're adding a new qualifier to the `define_enum_for`
    matcher called `with_default`. This qualifier is used to test that the
    enum is defined with a default value. A proc can also be passed, and
    will be called once each time a new value is needed.
    
    It's nice to note that using Time or Date as the return of Procs as
    default value can lead to flaky tests, so it's recommended to
    freeze time or date to avoid this.
    matsales28 committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    7c2f413 View commit details
    Browse the repository at this point in the history