           append: true
           replace: 'my best friend'
           eof: true
-        , (err, written) ->
-          written.should.be.true()
-        .call (options, next) ->
-          fs.readFile ssh, "#{scratch}/fromto.md", 'utf8', (err, content) ->
-            content.should.eql 'here we are\nyou coquin\n# from\nmy best friend\n# to\n'
-            next()
+        , (err, status) ->
+          status.should.be.true()
+        .file.assert
+          target: "#{scratch}/fromto.md"
+          content: 'here we are\nyou coquin\n# from\nmy best friend\n# to\n'
         .then next
     
     they 'with from and without to', (ssh, next) ->
-      mecano.file
-        ssh: ssh
+      mecano
+        ssh: ssh
+      .file
         target: "#{scratch}/fromto.md"
         from: '# from'
         content: 'here we are\n# from\nlets try to replace that one\n# to\nyou coquin'
         replace: 'my friend'
-      , (err, written) ->
-        return next err if err
-        written.should.be.true()
-        fs.readFile ssh, "#{scratch}/fromto.md", 'utf8', (err, content) ->
-          return next err if err
-          content.should.eql 'here we are\n# from\nmy friend'
-          next()
+      , (err, status) ->
+        status.should.be.true() unless err
+      .file.assert
+        target: "#{scratch}/fromto.md"
+        content: 'here we are\n# from\nmy friend'
+      .then next
     
     they 'without from and with to', (ssh, next) ->
       mecano.file

          to: '# to'
          append: true
          replace: 'my friend'
        , (err, written) ->
          written.should.be.true()
        .call (options, next) ->
          fs.readFile ssh, "#{scratch}/fromto.md", 'utf8', (err, content) ->
            content.should.eql 'here we are\nyou coquin\n# from\nmy friend\n# to'
            next()
        .file
          target: "#{scratch}/fromto.md"
          from: '# from'

        match: /will never work/
        replace: 'Add this line'
        append: true
      , (err, status) ->
        status.should.be.true() unless err
      .file.assert
        target: "#{scratch}/file"
        content: 'here we are\nyou coquin\nAdd this line'
      .then next

    describe 'place_before/place_after a match if it is a regexp', ->

