Fix tests by allowing removeFromRoster to be spyable.

This commit is contained in:
JC Brand 2015-04-10 13:04:00 +02:00
parent 1ce328783c
commit e6f5b95da7

View File

@ -3484,7 +3484,7 @@
'status': '' 'status': ''
}, attributes)); }, attributes));
this.on('destroy', this.removeFromRoster, this); this.on('destroy', function () { this.removeFromRoster(); }.bind(this));
}, },
subscribe: function (message) { subscribe: function (message) {