Make bookmarks menu appear all the time

This commit is contained in:
Arpit Jalan
2014-06-23 10:21:33 +05:30
parent 8161538966
commit 7e946a718e
6 changed files with 1 additions and 26 deletions

View File

@ -26,14 +26,3 @@ test("showAdminLinks", function() {
currentUserStub.set("staff", false);
equal(controller.get("showAdminLinks"), false, "is false when current user is not a staff member");
});
test("showBookmarksLink", function() {
var currentUserStub = Ember.Object.create();
this.stub(Discourse.User, "current").returns(currentUserStub);
currentUserStub.set("hasBookmark", true);
equal(controller.get("showBookmarksLink"), true, "is true when current user have bookmarks");
currentUserStub.set("hasBookmark", false);
equal(controller.get("showBookmarksLink"), false, "is false when current user does not have bookmarks");
});