Include something that includes...
gabrielf opened this issue · 3 comments
gabrielf commented
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 commented
I'm afraid this is a similar case like #7. Not sure if it is fixable with the current chai design…
gabrielf commented
RubenVerborgh commented
Yes, I'm afraid that's the best solution. Added in 352aaf6.