         fs.readFile destination, 'ascii', (err, content) ->
           content.should.eql 'Hello you'
           next()
-    
+
     it 'should use `source`', (next) ->
       destination = "#{scratch}/render.eco"
       mecano.render

      , (err, rendered) ->
        rendered.should.be.false()
      .then next
    
    it 'accept destination as a callback', (next) ->
      content = null
      mecano.render

        next()

    describe 'error', ->

      it 'when source doesnt exist', (next) ->
        mecano.render
          source: "oups"
          destination: "#{scratch}/render.eco"
        , (err, rendered) ->
          err.message.should.eql 'Invalid source, got "oups"'
          next()

      it 'when syntax is incorrect', (next) ->
        mecano.render
          content: '<%- @host ->'
          destination: "#{scratch}/render.eco"
