Skip to content

Instantly share code, notes, and snippets.

@eastridge
Created May 22, 2013 22:53
Show Gist options
  • Save eastridge/5631587 to your computer and use it in GitHub Desktop.
Save eastridge/5631587 to your computer and use it in GitHub Desktop.
//Colin working on issue #159
it('should render div tag even if div tag is the last element before the closing collection helper', function(){
var dummyCollection = new Thorax.Collection([{key: 'value'}])
var view = new Thorax.View({
dummyCollection: dummyCollection,
template: Handlebars.compile('{{#collection dummyCollection}}<div> </div>{{/collection}}')
expect(view.$('div').length).to.equal('1') // or get an array of the html and to.not.be.empty on it, maybe, or convert the innerHTML to a string and check if it contains the '/' character - would try these strategies next to try to get false
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment