   static_path = path.join root, 'sandbox/static'
   
   before (done) ->
-    run "cd #{static_path}; ../../../bin/roots compile --no-compress", ->
+    run "cd \"#{static_path}\"; ../../../bin/roots compile --no-compress", ->
       done()
 
   it 'copies static files', ->

  ejs_path = path.join root, 'sandbox/ejs'

  it 'should compile ejs', (done) ->
    run "cd #{ejs_path}; ../../../bin/roots compile --no-compress", ->
      fs.existsSync(path.join(ejs_path, 'public/index.html')).should.be.ok
      shell.rm '-rf', path.join(ejs_path, 'public')
      done()

    test_path = path.join(root, 'testproj')

    it 'should use the default template if no flags present', (done) ->
      run "cd \"#{root}\"; ../bin/roots new testproj", ->
        fs.existsSync(test_path).should.be.ok
        fs.existsSync(path.join(test_path, 'app.coffee')).should.be.ok
        fs.existsSync(path.join(test_path, 'readme.md')).should.be.ok
