       path.dirs (error, result) ->
         if error? then return done error
         for path in result.paths
-          assert (path.path in rootDirs), 'results shouldnt have |' + path + '|'
+          assert (path.path in rootDirs), 'results shouldnt have |' + path.path + '|'
         done()
 
   describe 'sync dirs', ->

        it 'should list all the project root paths', (done) ->
          path = new Path
          path.list
            each:(path) ->
              assert (path.path in rootPaths), 'each shouldnt receive : |' + path + '|'
            done: (error, result) ->
              if error? then return done error
              for path in result.paths
                assert (path.path in rootPaths), 'results shouldnt have |' + path + '|'
              done()



          path = new Path
          result = path.list each:(path) -> each[path.path] = true
          for path in result.paths
            assert (path.path in rootPaths), 'results shouldnt have |' + path.path + '|'
          for path in rootPaths
            assert each[path]?, 'each should have received path: |' + path.path + '|'


  # path.files
