/* global define */

define([
  'views/header-view',
  'buses/event-bus'
], function (HeaderView, EventBus) {
  describe("HeaderView", function() {
    var view;

    describe("When clicking in home", function() {
      beforeEach(function() {
        view = new HeaderView();
        view.render();
      });

      it("should trigger a navigation to index event", function() {
        var trigger = spyOn(EventBus, 'trigger');
        view.$('.navbar-brand').click();
        expect(trigger).toHaveBeenCalledWith('header:view:index', { id: -1 });
      });
    });
  });
});

@@ -59,17 +59,17 @@
 ses/
-event-bus
+navigator
 '%0A%5D,
@@ -91,24 +91,25 @@
 erView, 
-EventBus
+Navigator
 ) %7B%0A  de
@@ -405,26 +405,34 @@
 yOn(
-EventBus, 'trigger
+Navigator, 'navigateToHome
 ');%0A
@@ -522,38 +522,18 @@
 th('
-header:view:index', %7B id: -1 %7D
+', 0, true
 );%0A 

Fix header view spec