Closed harjup closed 9 years ago
Thanks you for filing the bug and making is so easiliy reproducible :-)
You issue has be fixed with the recent release of 0.3.0-beta.3 with has much improved ModuleBuilder, more info can be found in the CHANGELOG of the 0.3 branch: http://bit.ly/1AhV2mf Hope to release a final 0.3.0 release within the next few weeks but the 0.3.0-beta.3 pre-release should stable enough to be used right now.
I'm trying to test a service that has dependencies on external services as well as $http. When I test http requests through $httpBackend, it doesn't work.
If I don't exclude $http, a mock object is generated. If I do, it's not wired up to $httpBackend correctly and requests are not properly flushed.
Here are two tests illustrating the issue, the first one does not work, while the second one does:
Result: