           'views'
           'public'
         ])
-        shell.rm '-rf', path.join(root, 'testproj')
         done()
 
     it 'should use basic template if the --basic flag is present', (done) ->

      done()

  it 'copies static files', ->
    fs.existsSync(path.join(test_path, 'public/whatever.poop')).should.be.ok
    require_content = fs.readFileSync path.join(test_path, 'public/whatever.poop'), 'utf8'
    require_content.should.match /roots dont care/
    shell.rm '-rf', path.join(test_path, 'public')

describe 'errors', ->
  test_path = path.join root, './errors'


  it 'should compile coffeescript and requires should work', (done) ->
    run "cd \"#{test_path}\"; ../../bin/roots compile --no-compress", ->
      files_exist test_path, ['public/basic.js', 'public/require.js']
      require_content = fs.readFileSync path.join(test_path, 'public/require.js'), 'utf8'
      require_content.should.match /BASIC/
      done()

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

  after ->
    remove path.join(test_path, 'public')
    remove path.join(test_path_2, 'public')

describe 'stylus', ->
  test_path = path.join root, './stylus'
