Fix broken test.

This commit is contained in:
edgarsilva 2015-01-30 15:04:14 -06:00
parent 3d2842567b
commit cd23d989cf
1 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ describe("Cylon", function() {
var API, opts, instance;
beforeEach(function() {
instance = { listen: spy() };
instance = { start: spy() };
opts = { https: false };
API = stub().returns(instance);
@ -87,8 +87,8 @@ describe("Cylon", function() {
expect(Cylon.apiInstances).to.be.eql([instance]);
});
it("tells the API instance to start listening", function() {
expect(instance.listen).to.be.called;
it("tells the API instance to start", function() {
expect(instance.start).to.be.called;
});
});
});