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

include and contains? #25

Open
nathanwaldman opened this issue Dec 25, 2015 · 0 comments
Open

include and contains? #25

nathanwaldman opened this issue Dec 25, 2015 · 0 comments

Comments

@nathanwaldman
Copy link

I am attempting to assert that any element of an array of strings contains a particular substring.

The assertion ['first', 'second'].should.include.an.item.that.contains 'con' fails with expected 'second' to include 'con'.

Is this supposed to work? Without looking at the internals, I could see how using include in the sense of array elements, and contain in the sense of a substring in one assertion might be confusing.

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

No branches or pull requests

1 participant