 mock_basic_files = 
   mock_basic_pack: path.join mock_basic, 'package.json'
   app: path.join mock_basic, 'src', 'app', 'app.coffee'
+  vendor: path.join mock_basic, 'vendors', 'some.vendor.js'
+  partial: path.join mock_basic, 'src', 'templates', '_header.jade'
   mock_basic_config: path.join mock_basic, 'polvo.yml'
   js: path.join mock_basic, 'public', 'app.js'
   css: path.join mock_basic, 'public', 'app.css'

    fs.unlinkSync mock_basic_files.css if fs.existsSync mock_basic_files.css


  describe '[mock:basic]', ->
    it 'should alert about no `package.json` file plugins during compile', ->
      errors = outs = 0

      new setTimeout ->
        fs.writeFileSync mock_basic_files.app, backup
      , 3000

      # editing a partial
      new setTimeout ->
        fs.appendFileSync mock_basic_files.partial, ' '
      , 4000

      # deleting a vendor
      new setTimeout ->
        fs.unlinkSync mock_basic_files.vendor
      , 5000

      # creating a vendor
      vendor_backup = fs.readFileSync(mock_basic_files.vendor).toString()
      new setTimeout ->
        fs.writeFileSync mock_basic_files.vendor, vendor_backup
      , 6000

      # editing a vendor
      new setTimeout ->
        fs.appendFileSync mock_basic_files.vendor, ' '
      , 7000



    it 'should start app and serve it', (done)->
      @timeout 4000
