     pkg: pkg
   )).pipe(gulp.dest(path.bower)).pipe connect.reload()
 
-gulp.task "spec", (done) ->
-  return true
-  gulp.src(path.spec).pipe(concat("spec.coffee")).pipe(coffee()).pipe gulp.dest(path.temp)
+gulp.task "spec", ->
+  gulp.src path.spec
+    .pipe concat "spec.coffee"
+    .pipe coffee()
+    .pipe gulp.dest path.temp
+
+gulp.task "test", ["spec"], (done) ->
   karma.start
     configFile: __dirname + '/karma.js',
     files: test

  gulp.watch app.extensions, ["extensions"]
  gulp.watch app.docs, ["docs"]
  gulp.watch kitchensink.coffee, ["kitchensink"]
  gulp.watch kitchensink.yml, ["kitchensink"]
  gulp.src(test).pipe karma(
    configFile: "karma.js"
    action: "watch"
  )


gulp.task "default", ->
  gulp.run ["webserver"]
  gulp.watch path.core, ["core", "test"]
  gulp.watch path.spec, ["test"]
  gulp.watch path.quojs, ["core", "test"]
  gulp.watch path.icons + "*.styl", ["icons"]
  gulp.watch app.coffee, ["coffee"]
  gulp.watch app.stylus, ["stylus"]
