FEATURE: the top tab is the default for new users

This commit is contained in:
Régis Hanol
2013-12-30 18:46:18 +01:00
parent 7e984e369a
commit 8685e4079f
5 changed files with 53 additions and 4 deletions

View File

@ -133,6 +133,11 @@ test("avatarImg", function() {
"it doesn't render avatars for invalid avatar template");
});
test("defaultHomepage", function() {
Discourse.SiteSettings.top_menu = "latest|top|hot";
equal(Discourse.Utilities.defaultHomepage(), "latest", "default homepage is the first item in the top_menu site setting");
});
module("Discourse.Utilities.cropAvatar with animated avatars", {
setup: function() { Discourse.SiteSettings.allow_animated_avatars = true; }
});