Repaired groupServicesSpec, uncommented specs.

As it turns out, the page reload behavior was not caused by $resource, but
exists somewhere within the User module. Stubbed out the User module as as done
in notificationServicesSpec
This commit is contained in:
Kevin Gisi 2015-03-22 21:33:01 -04:00
parent 09b6401794
commit 2194caec15

View file

@ -1,15 +1,18 @@
'use strict';
// @TODO the requests via $resource seem to be
// doing a full page reload which breaks the specs
describe('groupServices', function() {
var $httpBackend, $http, groups;
xdescribe('groupServices', function() {
var $httpBackend, groups;
beforeEach(function() {
module(function($provide) {
$provide.value('User', {});
});
beforeEach(inject(function(_$httpBackend_, Groups) {
inject(function(_$httpBackend_, Groups, User) {
$httpBackend = _$httpBackend_;
groups = Groups;
}));
});
});
it('calls party endpoint', function() {
$httpBackend.expectGET('/api/v2/groups/party').respond({});