Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

global spyOn does not accept / honor ignoreMethodDoesntExist #40

Closed
bloveridge opened this Issue · 2 comments

2 participants

@bloveridge

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
Owner

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

@infews
Owner

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
Something went wrong with that request. Please try again.