Fix incorrect jasmine spy usage.. GREEN?

This commit is contained in:
Dan Hansen 2011-04-29 23:19:37 -05:00
parent 09ac4c789e
commit 73680a54e5

View file

@ -5,9 +5,10 @@
describe("Diaspora", function() {
describe("widgets", function() {
describe("notifications", function() {
var changeNotificationCountSpy = spyOn(Diaspora.widgets.notifications.changeNotificationCount);
var changeNotificationCountSpy;
beforeEach(function() {
changeNotificationCountSpy = spyOn(Diaspora.widgets.notifications, "changeNotificationCount").andCallThrough();
$("#jasmine_content").html("<div id='notifications'></div>");
Diaspora.widgets.notifications.start();
changeNotificationCountSpy.reset();