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 something that includes... #9

Closed
gabrielf opened this issue Feb 12, 2015 · 3 comments
Closed

Include something that includes... #9

gabrielf opened this issue Feb 12, 2015 · 3 comments

Comments

@gabrielf
Copy link
Contributor

Maybe this construct isn't even supposed to work but since it's not mentioned in the README I was surprised:

describe "the array ['abc', 'def']", ->
  array = ['abc', 'def']

  it "should include something that contain 'b'", ->
    array.should.include.something.that.contain('b')

Fails with:

  1) the array ['abc', 'def'] should include something that contain 'b':
     expected 'def' to include 'b'
@RubenVerborgh
Copy link
Collaborator

I'm afraid this is a similar case like #7. Not sure if it is fixable with the current chai design…

@gabrielf
Copy link
Contributor Author

What a shame, because it is such a nice plugin...

Maybe the README should end with a section:

Known issues

Because of how Chai works internally it is not possible to combine Chai Things in certain ways, see #4, #9.

@RubenVerborgh
Copy link
Collaborator

Yes, I'm afraid that's the best solution. Added in 352aaf6.

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

2 participants