I had some interesting tribulations in trying to test whether views were correctly bound to events. In backbone, we typically bind to events in the initialize method, using
I have managed to achieve this using prototype patching. Before you create the instance of the view, spyOn the constructor's prototype.
spyOn
spyOn(MyView.prototype, 'changeSelected'); var view = new MyView(); view.selectSomething(); expect(view.changeSelected).toHaveBeenCalled();