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

Fail Include matcher when comparing String with non-String #1449

Closed
wants to merge 1 commit into from

Commits on Feb 2, 2024

  1. Fail Include matcher when comparing String with non-String

    If the actual is a String and the expected is not, a `TypeError` occurs
    when we try to call `actual.include?`, becuase this method expects
    a String when called on a String.
    
    If the actual is a `String` and the expected is not, then the match
    can't possibly succeed and we can return early.
    naveg committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    06ba2d2 View commit details
    Browse the repository at this point in the history