diff --git a/spec/MainSpec.js b/spec/MainSpec.js index 4d2a1e260..69e622574 100644 --- a/spec/MainSpec.js +++ b/spec/MainSpec.js @@ -67,7 +67,7 @@ } }; - describe("The contacts roster", $.proxy(function () { + describe("The Contacts Roster", $.proxy(function () { it("is not shown by default", $.proxy(function () { expect(this.rosterview.$el.is(':visible')).toEqual(false); }, xmppchat)); @@ -78,133 +78,69 @@ expect(this.toggleControlBox).toHaveBeenCalled(); }, xmppchat)); - it("hides the pending contacts heading if there aren't any", $.proxy(function () { - expect(this.rosterview.$el.find('dt#pending-xmpp-contacts').css('display')).toEqual('none'); - }, xmppchat)); + describe("Pending Contacts", $.proxy(function () { + it("do not have a heading if there aren't any", $.proxy(function () { + expect(this.rosterview.$el.find('dt#pending-xmpp-contacts').css('display')).toEqual('none'); + }, xmppchat)); - it("can add pending contacts, and they should be sorted alphabetically", $.proxy(function () { - var i, t, is_last; - spyOn(this.rosterview, 'render').andCallThrough(); - for (i=0; i