           assert (path.path in rootFiles), 'results shouldnt have |' + path.path + '|'
         done()
 
+    it 'even with a custom acceptPath filter', (done) ->
+      path = buildPath()
+      path.files
+        acceptPath: -> true
+        done: (error, result) ->
+          if error? then return done error
+          for path in result.paths
+            assert (path.path in rootFiles), 'results shouldnt have |' + path.path + '|'
+          done()
+
   describe 'sync files', ->
     it 'should list all files in project root', ->
       path = buildPath()



  # path.read
  describe 'sync read', -> it 'should read file \'file.txt\'', ->
    path = buildPath 'test/helpers/file.txt'
    text = path.read()

    it 'with empty string should return false',  -> assert.equal path.endsWith(''), false
    it 'with wrong string should return false',  -> assert.equal path.endsWith('some/wrong/path'), false
    it 'with correct string should return true', -> assert.equal path.endsWith(tests.relative.path), true
    it 'with wrong string should return false',  -> assert.equal path.endsWith(buildPath('some/wrong/path')), false
    it 'with correct string should return true', -> assert.equal path.endsWith(buildPath(tests.relative.path)), true


  # path.equals(Path|string)
