respond with fake data
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 13 Mar 2013 19:10:57 +0000 (20:10 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 13 Mar 2013 19:10:57 +0000 (20:10 +0100)
test/unit/controllersSpec.js

index e7eb996..41ae21d 100644 (file)
@@ -82,7 +82,9 @@ describe('AuthorsCtrl', function(){
 
   beforeEach(inject(function($injector) {
     $httpBackend = $injector.get('$httpBackend');
-       $httpBackend.whenJSONP(/authors/).passThrough();
+       $httpBackend.whenJSONP(/authors/)
+//             .passThrough();
+               .respond({ rows: [] });
   }));
   afterEach(function() {
          $httpBackend.verifyNoOutstandingExpectation();