Admin badge creation bug fixes.

This commit is contained in:
Vikhyat Korrapati
2014-05-24 08:03:46 +05:30
parent d208e4d517
commit a79bf11edb
7 changed files with 41 additions and 13 deletions

View File

@@ -15,9 +15,9 @@ test("canEditDescription", function() {
ok(!controller.get('canEditDescription'), "shows the displayName when it is different from the name");
});
test("newBadge", function() {
test("createNewBadge", function() {
var controller = testController(Discourse.AdminBadgesController, []);
controller.send('newBadge');
controller.send('createNewBadge');
equal(controller.get('model.length'), 1, "adds a new badge to the list of badges");
});