         done()
 
     it 'should use express template if the --express flag is present', (done) ->
-      run "cd #{root}; ../bin/roots new testproj --express", ->
+      run "cd \"#{root}\"; ../bin/roots new testproj --express", ->
         fs.existsSync(test_path).should.be.ok
         fs.existsSync(path.join(test_path, 'app.js')).should.be.ok
         fs.existsSync(path.join(test_path, 'routes')).should.be.ok

        done()

    it 'should use basic template if the --basic flag is present', (done) ->
      run "cd #{root}; ../bin/roots new testproj --basic", ->
        fs.existsSync(test_path).should.be.ok
        fs.existsSync(path.join(test_path, 'views/index.html')).should.be.ok
        fs.existsSync(path.join(test_path, 'assets/js/main.js')).should.be.ok

      done()

  it 'should compile without closures when specified in app.coffee', (done) ->
    run "cd \"#{coffeescript_path_2}\"; ../../../bin/roots compile --no-compress", ->
      fs.existsSync(path.join(coffeescript_path_2, 'public/testz.js')).should.be.ok
      require_content = fs.readFileSync path.join(coffeescript_path_2, 'public/testz.js'), 'utf8'
      require_content.should.not.match /function/
