global spyOn does not accept / honor ignoreMethodDoesntExist #40

bloveridge opened this Issue Dec 28, 2010 · 2 comments


None yet
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


infews commented Jan 28, 2011

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


infews commented Jan 28, 2011

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