Factor out room name logic: mRoomName is the canonical source.

This commit is contained in:
Kegan Dougal 2014-11-06 13:37:05 +00:00
parent c9c2e39531
commit 8bcd36377a
2 changed files with 6 additions and 14 deletions

View file

@ -76,8 +76,8 @@ describe("RegisterController ", function() {
scope.account.pwd1 = "password";
scope.account.pwd2 = "password";
scope.account.desired_user_id = "bob";
scope.register();
rootScope.$digest();
scope.register(); // this depends on the result of a deferred
rootScope.$digest(); // which is delivered after the digest
expect(scope.feedback).not.toEqual(prevFeedback);
});