Fix broken test

This commit is contained in:
Juan Cruz Viotti 2015-01-29 15:28:33 -04:00
parent 03c6c72df6
commit d284e92520

View File

@ -85,4 +85,4 @@ describe 'Errors:', ->
error.code = 'EACCES'
checkProcessExitOption error, false, (processExitStub, logErrorStub) ->
expect(logErrorStub).to.have.been.calledOnce
expect(logErrorStub).to.have.been.calledWith('You don\'t have enough privileges to run this operation.')
expect(logErrorStub.getCall(0).args[0]).to.match(/^You don\'t have enough privileges to run this operation./)