 
 
 describe 'bin/kdc-plus', ->
-  bin = null
+  bin       = null
+  stubsdir  = path.join process.cwd(), 'build', 'test', 'stubs'
   before -> bin = binGen 'kdc-plus'
 
   it 'should log to stderr not stdout', (done) ->

      done()

  it 'should support plain javascript kdapps', (done) ->
    stub = path.join __dirname, 'stubs', 'plainjs'
    bin [stub], (err, stdout, stderr) ->
      should.not.exist err
      stdout.should.equal ''

      done()

  it 'should support commonjs kdapps', (done) ->
    stub = path.join stubsdir, 'commonjs'
    bin [stub], (err, stdout, stderr) ->
      should.not.exist err
      stdout.should.equal ''
