From 2593dd70990b9eb247c8072683f6276e76d56512 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 12 Apr 2013 23:20:31 +0200 Subject: [PATCH] Improve the test names --- spec/RosterSpec.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/spec/RosterSpec.js b/spec/RosterSpec.js index 99f849dd1..a04f9b8e2 100644 --- a/spec/RosterSpec.js +++ b/spec/RosterSpec.js @@ -7,7 +7,7 @@ ); } (this, function (xmppchat) { - return describe("Contacts Roster", function() { + return describe("Roster", function() { // Names from http://www.fakenamegenerator.com/ names = [ @@ -133,7 +133,7 @@ describe("roster items", $.proxy(function () { - it("should be able to change their status to online and be sorted alphabetically", $.proxy(function () { + it("can change their status to online and be sorted alphabetically", $.proxy(function () { var item, view, jid; spyOn(this.rosterview, 'render').andCallThrough(); for (i=59; i>54; i--) { @@ -151,7 +151,7 @@ } }, xmppchat)); - it("should be able to change their status to busy and be sorted alphabetically", $.proxy(function () { + it("can change their status to busy and be sorted alphabetically", $.proxy(function () { var item, view, jid; spyOn(this.rosterview, 'render').andCallThrough(); for (i=54; i>49; i--) { @@ -168,7 +168,7 @@ } }, xmppchat)); - it("should be able to change their status to away and be sorted alphabetically", $.proxy(function () { + it("can change their status to away and be sorted alphabetically", $.proxy(function () { var item, view, jid; spyOn(this.rosterview, 'render').andCallThrough(); for (i=49; i>44; i--) { @@ -186,7 +186,7 @@ } }, xmppchat)); - it("should be able to change their status to unavailable and be sorted alphabetically", $.proxy(function () { + it("can change their status to unavailable and be sorted alphabetically", $.proxy(function () { var item, view, jid; spyOn(this.rosterview, 'render').andCallThrough(); for (i=44; i>39; i--) { @@ -204,7 +204,7 @@ } }, xmppchat)); - it("should be ordered according to status: online, busy, away, unavailable, offline", $.proxy(function () { + it("are ordered according to status: online, busy, away, unavailable, offline", $.proxy(function () { var contacts = this.rosterview.$el.find('dd.current-xmpp-contact'); var i; // The first five contacts are online. @@ -230,6 +230,7 @@ }, xmppchat)); }, xmppchat)); + }, xmppchat)); }); }));