AngularJS, Unit Testing Custom Provider

On one of my project i ran into the need of testing a custom provider and after a few online search i realized that it was not so trivial so i decided to share the solution i used in case it might help someone.

[read more]