Fix broken tests

This commit is contained in:
Andrew Stewart 2014-09-05 10:34:03 -07:00
parent 14d8bbab00
commit cb43f34138
1 changed files with 2 additions and 2 deletions

View File

@ -74,14 +74,14 @@ describe("Connection", function() {
describe("#disconnect", function() {
beforeEach(function() {
stub(Logger, 'info').returns(true);
stub(connection.adaptor, 'disconnect').returns(true);
stub(connection, 'removeAllListeners');
connection.adaptor.disconnect = stub().returns(true);
connection.disconnect();
});
afterEach(function() {
connection.adaptor.disconnect.restore();
connection.removeAllListeners.restore();
Logger.info.restore();
});