refactor isMemberOfGroup and tests

This commit is contained in:
Blade Barringer
2015-04-16 07:58:35 -05:00
parent 68486f7c42
commit 1d95784dde
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
'use strict';
describe.only('Groups Controller', function() {
describe('Groups Controller', function() {
var scope, ctrl, groups, user, guild, $rootScope;
beforeEach(function() {
@@ -34,7 +34,7 @@ describe.only('Groups Controller', function() {
return [guild];
});
expect(scope.isMemberOfGroup(user._id, guild)).to.be.eql(true);
expect(scope.isMemberOfGroup(user._id, guild)).to.be.ok;
expect(myGuilds).to.be.called
});
@@ -48,7 +48,7 @@ describe.only('Groups Controller', function() {
return [];
});
expect(scope.isMemberOfGroup(user._id, guild)).to.be.eql(false);
expect(scope.isMemberOfGroup(user._id, guild)).to.not.be.ok;
expect(myGuilds).to.be.called
});
});