       "test-packages"
       "success"
     ]
-    spacejamChild.spawn(spacejamCmdLineLocal,args,{cwd:testApp1})
+    spacejamChild.spawn(spacejamBin,args,{cwd:testApp1})
     spacejamChild.child.on "exit", (code) =>
       expect(code,"spacejam exited with errors").to.equal SpaceJam.ERR_CODE.TEST_SUCCESS
       done()

expect = require("chai").expect
ChildProcess = require '../src/ChildProcess'
SpaceJam = require '../src/SpaceJam'

describe "SpaceJam Test", ->
  @timeout 40000

  spacejamChild = new ChildProcess()

  spacejamCmdLineLocal = "../../bin/spacejam"

  spacejamCmdLine = "bin/spacejam"

  testApp1 = "tests/leaderboard/"


      "test-packages"
      "success"
    ]
    spacejamChild.spawn(spacejamBin,args)
    spacejamChild.child.on "exit", (code) =>
      expect(code,"spacejam exited with the wrong code").to.equal 1
      done()
