Skip to content

Instantly share code, notes, and snippets.

@benbc
Created July 23, 2010 10:18
it('passes the new selection to onTypeSelected', function() {
var view = TDD.view(dom, { types: ['Meat'] }).bind();
expect(view).to(receive, 'onTypeSelected').with_args('Meat');
dom.find('.food-type option').attr('selected', 'selected');
dom.find('.food-type').change();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment