Why do I receive error … unexpected request: GET /internalapi/quotes

You need to tell $httpBackend to expect a GET request. describe(“MyService”, function () { beforeEach(module(‘MyApp’)); beforeEach(module(“restangular”)); var Restangular, ms; beforeEach(inject(function (_Restangular_, MyService) { ms = MyService; Restangular = _Restangular_; })); it(“retrieveQuotes should be defined”, function () { expect(ms.retrieveQuotes).toBeDefined(); }); it(“retrieveQuotes should return array of quotes”, inject(function ($httpBackend) { $httpBackend.whenGET(“internalapi/quotes”).respond({ hello: ‘World’ }); //expect a get … Read more