|
@@ -1282,7 +1282,6 @@ describe('App.AddHostController', function () {
|
|
|
getAllHostNames: Em.K
|
|
|
};
|
|
|
beforeEach(function () {
|
|
|
- sinon.stub(controller, 'setCurrentStep', Em.K);
|
|
|
sinon.stub(controller, 'clearAllSteps', Em.K);
|
|
|
sinon.stub(controller, 'clearStorageData', Em.K);
|
|
|
sinon.stub(App.updater, 'immediateRun', Em.K);
|
|
@@ -1291,7 +1290,6 @@ describe('App.AddHostController', function () {
|
|
|
sinon.spy(mock, 'getAllHostNames');
|
|
|
});
|
|
|
afterEach(function () {
|
|
|
- controller.setCurrentStep.restore();
|
|
|
controller.clearAllSteps.restore();
|
|
|
controller.clearStorageData.restore();
|
|
|
App.updater.immediateRun.restore();
|
|
@@ -1301,7 +1299,6 @@ describe('App.AddHostController', function () {
|
|
|
});
|
|
|
it("", function () {
|
|
|
controller.finish();
|
|
|
- expect(controller.setCurrentStep.calledWith('1')).to.be.true;
|
|
|
expect(controller.clearAllSteps.calledOnce).to.be.true;
|
|
|
expect(controller.clearStorageData.calledOnce).to.be.true;
|
|
|
expect(mock.updateAll.calledOnce).to.be.true;
|