2014-07-30 18:56:01 -04:00
|
|
|
moduleFor("view:header");
|
2013-11-08 15:06:27 -05:00
|
|
|
|
|
|
|
test("showNotifications", function() {
|
|
|
|
var controllerSpy = {
|
|
|
|
send: sinon.spy()
|
|
|
|
};
|
2014-07-30 18:56:01 -04:00
|
|
|
var view = this.subject({controller: controllerSpy});
|
2013-11-08 15:06:27 -05:00
|
|
|
view.showNotifications();
|
|
|
|
|
|
|
|
ok(controllerSpy.send.calledWith("showNotifications", view), "sends showNotifications message to the controller, passing header view as a param");
|
|
|
|
});
|