velesin/jasmine-jquery — pull request #65 by Sequoia (2012-05-22 16:01:24+00:00)
Title: toHandle handles namespaced events

Works. Here are the tests that pass now, to give you an idea of what it does:

```javascript
it('should pass if the a namespaced event is bound', function(){
var handler = function(){ }; // noop
$('#clickme').bind("click", handler); //another event for the click array
$('#clickme').bind("click.NameSpace", handler);
expect($('#clickme')).toHandle("click.NameSpace");
expect($('#clickme').get(0)).toHandle("click.NameSpace");
});

it('should pass if a namespaced event is not bound', function() {
expect($('#clickme')).not.toHandle("click.NameSpace");
expect($('#clickme').get(0)).not.toHandle("click.NameSpace");
});
```