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

  it 'notifies you if theres an error', (done) ->
    run "cd \"#{test_path}\"; ../../bin/roots compile --no-compress", (a,b,stderr) ->
      stderr.should.match /ERROR/
      shell.rm '-rf', path.join(test_path, 'public')
      done()

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

      done()

  it 'precompiles templates', ->
    files_exist test_path, ['public/js/templates.js']
    require_content = fs.readFileSync path.join(test_path, 'public/js/templates.js'), 'utf8'
    require_content.should.match(/\<p\>hello world\<\/p\>/)

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

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