 
   # path.endsWith
   describe 'endsWith', ->
-    path = new Path tests.relative.path
+    path = buildPath tests.relative.path
     it 'with undefined should return false',     -> assert.equal path.endsWith(undefined), false
     it 'with null should return false',          -> assert.equal path.endsWith(null), false
     it 'with empty string should return false',  -> assert.equal path.endsWith(''), false

      describe 'with only `accept` option', ->

        it 'accept true should list all root paths', ->
          path = new Path
          result = path.list accept:-> true
          for path in result.paths
            assert (path.path in rootPaths), 'results shouldnt have |' + path.path + '|'

        it 'accept \'lib\' should only list lib', ->
          path = new Path
          result = path.list acceptString:(path) -> 'lib' is path
          assert.equal result?.paths?.length, 1, 'result should only contain \'lib\' path'
          assert.equal result?.paths[0], 'lib'


  # path.equals(Path|string)
  describe 'equals', ->
    path1 = buildPath tests.relative.path
    path2 = buildPath tests.relative.path
    path3 = buildPath tests.absolute.path
    it 'with undefined should return false',     -> assert.equal path1.equals(undefined), false
    it 'with null should return false',          -> assert.equal path1.equals(null), false
    it 'with empty string should return false',  -> assert.equal path1.equals(''), false
