global spyOn does not accept / honor ignoreMethodDoesntExist #40

bloveridge opened this Issue Dec 28, 2010 · 2 comments

2 participants


jasmine.Spec.prototype.spyOn accepts three parameters: obj, methodName, ignoreMethodDoesntExist

global spyOn function only accepts two parameters: obj, methodName

So if one wishes to spy on a non-existent method, one may not use the global spyOn method but must instead grab and directly call jasmine.getEnv().currentSpec.spyOn


Do you have a patch with specs that does what you suggest?


Aha! There's your patch. We'll review. Closing as a duplicate. Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment