     ->
 
       dnePath   = _getPath 'does-not-exist'
-      expected  =
-        ok      : false
-        msg     : "ENOENT: no such file or directory, access '#{dnePath}'"
 
-      File.exists(dnePath).then (actual) -> assert.deepEqual actual, expected
+      File.exists(dnePath).then (actual) ->
+        assert.equal actual.ok, false
+        assert.equal notFoundRegExp(dnePath).test(actual.msg), true
 
     it 'should respond with a Result(true, \'\') when a file exists', ->
 


_ts       = -> (new Date()).getTime()
_getPath  = (name) -> "/tmp/#{name}-#{_ts()}"

describe 'File Interface', ->


        ok      : true
        msg     : ''

      File.writeLock path, 1234
      .then -> File.deleteLock path
      .then (actual) -> assert.deepEqual actual, expected
      .then -> File.exists(path)
      .then (actual2) ->
        assert.equal actual2.ok, false
        assert.equal notFoundRegExp(path).test(actual2.msg), true
