From 2194caec15580479bd4cb69ab1575359579ed9d8 Mon Sep 17 00:00:00 2001 From: Kevin Gisi Date: Sun, 22 Mar 2015 21:33:01 -0400 Subject: [PATCH] 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 --- test/spec/groupServicesSpec.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test/spec/groupServicesSpec.js b/test/spec/groupServicesSpec.js index c649a450ed..9d38dd7372 100644 --- a/test/spec/groupServicesSpec.js +++ b/test/spec/groupServicesSpec.js @@ -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({});