Using mocks with angular's scenario runner Using mocks with angular's scenario runner angularjs angularjs

Using mocks with angular's scenario runner


You can use jasmine's spies, which is used for spies, stubs, and mocks. Here's an example of creating an instance of a controller with two stubbed dependencies. It's in coffeescript but you can convert it here.

Depending on what you're looking for though $httpBackend sounds like what I would do. (see SonOfNun's comment)