Using ngMock to simulate $http calls in service unit tests
I've been looking at this for hours. I've tried example after example. I just can't seem to get this to work. Please help =) I am doing all this on a clean clone of the angular-seed repo (git://github.com/angular/angular-seed.git). I have made no changes except those listed below. Problem: When I run the following, the test works. Note that in this version, the service returns a value before doing any kind of $http call. ./app/js/services/services.js 'use strict'; angular.module('myApp.services', []) .factory("exampleService", function ($http) { return {value:"goodValue"}; $http.get("