 
   # path.relativeTo
   describe 'relativeTo', ->
-    for path1,path2 of {
+
+    it 'should return `this` when result is the same path', ->
+
+      path = buildPath('test')
+      result = path.relativeTo 'test'
+      assert.strictEqual result, path
+
+    for path1, path2 of {
       '':'one/two'
       '.':'one/two'
       '..':'one/two'

    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


  # path.equals(Path|string)

        for path in result.paths
          assert (path.path in rootDirs), 'results shouldnt have |' + path.path + '|'
        done()

    it 'even with a custom acceptPath filter', (done) ->
      path = buildPath()
      path.dirs
        acceptPath: -> true
        done: (error, result) ->
          if error? then return done error
          for path in result.paths
            assert (path.path in rootDirs), 'results shouldnt have |' + path.path + '|'
          done()


  describe 'sync dirs', ->
