mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Speech bubble waiting for an ajax response prior to rendering
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -17,7 +17,9 @@ module("Discourse.NotificationsController", {
|
||||
return [scope, options.username, options.link].join(" ").trim();
|
||||
});
|
||||
|
||||
controller = Discourse.NotificationsController.create();
|
||||
controller = Discourse.NotificationsController.create({
|
||||
container: Discourse.__container__
|
||||
});
|
||||
|
||||
view = Ember.View.create({
|
||||
container: Discourse.__container__,
|
||||
|
||||
Reference in New Issue
Block a user