-
-
Notifications
You must be signed in to change notification settings - Fork 912
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
allow_value matcher ignores some values #343
Comments
@indrekj Thanks for putting in this issue! However, this is actually the expected behavior (and in our docs too), i.e. Closing. |
Basically, I should never use |
@indrekj Sorry, I'm getting a little confused now. You can definitely use |
That's the problem. See my initial example. It clearly should fail because of the second value, but it doesn't. |
@indrekj The problem is that it 'does not' allow the value of 'bcd'. With that single failure, the entire set is rendered as a 'failure' and therefore the test passed. I realize this is a bit confusing but I would recommend splitting your allow values into multiple assertions in this case. The 'should_not' case can get a bit confusing. |
e.g
This assertion should fail because
'abc'
is allowed value, but it doesn't.The text was updated successfully, but these errors were encountered: