I want to be able to do something like:
expect($interval).toHaveBeenCalledWith(jasmine.any(Function), correctInterval)
However, I can't figure out how to get hold of $interval to spy on it. Any examples I've seen have been for use with $controller, so you can inject whatever you want into the controller, including a mock of $interval. I don't want to use a mock for every test, just for some tests, so I don't think I can use the $provide syntax in beforeEach to just replace $interval with a raw spy.