I'm trying to test a Directive in Angular, but I can't get the corresponding template to work.
The directive lists the templateUrl like so
templateUrl: 'directives/listview/view.html'
Now when I write any unit-test, I get
Error: Unexpected request: GET directives/listview/view.html
So I have to use the $httpBackend and respond with something sensible like
httpBackend.whenGET('directives/listview/view.html').respond("<div>som</div>");
But really I want to simply return the actual file, and also do it synchronously, so there's no issues with waits, deferred objects etc. How to do that?