Speech bubble waiting for an ajax response prior to rendering

This commit is contained in:
Arpit Jalan
2014-04-29 23:54:16 +05:30
parent 77d68ccf08
commit d16974fd4c
7 changed files with 46 additions and 20 deletions
@@ -23,7 +23,7 @@ test("showNotifications action", function() {
equal(controller.get("notifications"), null, "notifications are null before data has finished loading");
equal(Discourse.User.current().get("unread_notifications"), 1, "current user's unread notifications count is not zeroed before data has finished loading");
ok(viewSpy.showDropdownBySelector.notCalled, "dropdown with notifications is not shown before data has finished loading");
ok(viewSpy.showDropdownBySelector.calledWith("#user-notifications"), "dropdown with loading glyph is shown before data has finished loading");
Ember.run(function() {