           active: no
         ]
           current = file.nav.siblings[i]
-          tape.is current.title, item.title, titleMsg
-          tape.is current.href, item.href, hrefMsg
-          tape.is current.active, item.active, if item.active then activeMsg else notActiveMsg
-        tape.end()
-      test 'Children', (tape) ->
-        tape.notOk file.nav.children.length, 'Nav should have no children.'
-        tape.end()
-      test 'Root', (tape) ->
-        tape.is file.nav.root.title, 'Home', titleMsg
-        tape.is file.nav.root.href, '..', hrefMsg
-        tape.notOk file.nav.root.active, notActiveMsg
-        tape.end()
+          assert.is current.title, item.title, titleMsg
+          assert.is current.href, item.href, hrefMsg
+          assert.is current.active, item.active,
+            if item.active then activeMsg else notActiveMsg
+        assert.end()
+      test 'Children', (assert) ->
+        assert.notOk file.nav.children.length, 'Nav should have no children.'
+        assert.end()
+      test 'Root', (assert) ->
+        assert.is file.nav.root.title, 'Home', titleMsg
+        assert.is file.nav.root.href, '..', hrefMsg
+        assert.notOk file.nav.root.active, notActiveMsg
+        assert.end()

      activeMsg = 'Nav should be active.'
      notActiveMsg = 'Nav shouldn\'t be active.'
      Msg = ''
      test 'Self', (tape) ->
        tape.is file.nav.title, 'B', titleMsg
        tape.is file.nav.href, 'b.html', hrefMsg
        tape.ok file.nav.active, activeMsg
        tape.end()
      test 'Parent', (tape) ->
        tape.is file.nav.parent.title, 'Latin', titleMsg
        tape.is file.nav.parent.href, '.', hrefMsg
        tape.notOk file.nav.parent.active, notActiveMsg
        tape.end()
      test 'Grandparent', (tape) ->
        tape.is file.nav.parent.parent.title, 'Home', titleMsg
        tape.is file.nav.parent.parent.href, '..', hrefMsg
        tape.notOk file.nav.root.active, notActiveMsg
        tape.end()
      test 'Siblings', (tape) ->
        for item, i in [
          title: 'A'
          href: 'letter-a.html'

data    = require 'gulp-data'
matter  = require 'jade-var-matter'
jade    = require 'gulp-jade'
connect = require 'gulp-connect'
filter  = require 'gulp-filter'
spy     = require 'through2-spy'
  .obj
test    = require 'tape'

processJade = ->                                                          # DRY
  nav  = require './gulp-nav' # convenient during development to wait until now
