       it 'should print out help text to console', ->
          sut.help ['-h'], true
 
-         expect(console.log).toHaveBeenCalled()
+         expect(sut.log).toHaveBeenCalled()
 
       it "shouldn't exit the process if second parameter is blank", ->
          sut.help ['-h']

   beforeEach ->
      sut = require('../src/cli')
      spyOn process, 'exit'
      spyOn console, 'log'

   describe 'getLocation', ->
      it 'should return default if no flag provided', ->

         sut.help []

         expect(process.exit).not.toHaveBeenCalled()
         expect(sut.log).not.toHaveBeenCalled()

   describe 'help (-h)', ->
      it 'should exit the process if second parameter is true', ->
