 
     exec steps.join ' && '
 
-  # Task for running Mocha tests with coffee.
-  grunt.registerMultiTask 'mocha', 'Run mocha unit tests.', ->
+  # Run the unit tests by spawning an Impromptu server and passing through the 'test' message.
+  # This allows us to run the tests in a real-world environment: the database requires an
+  # Impromptu server and worker process to work correctly.
+  grunt.registerTask 'test', 'Run unit tests.', ->
     done = @async()
 
     cmd = "IMPROMPTU_PORT=2934 impromptu server"


  # Project configuration.
  grunt.initConfig
    mocha:
      default:
        src: ['test/*.coffee']

    coffee:
      default:
        files: [

  # Default task.
  grunt.registerTask 'default', ['coffee', 'test']

  grunt.registerTask 'nuke', "Nuke stuff. Don't run this unless you know what you're doing.", ->
    steps = [
      'rm -rf ~/.impromptu'
