expect(some.method).toHaveBeenCalledWith(jasmine.any(), 2, jasmine.any());
I also think we permit jasmine any to take a class, so if those other
args should always be numbers, you can
expect(some.method).toHaveBeenCalledWith(jasmine.any(Number), 2,
jasmine.any(Number));
Yet another method which we've often used for Ajax mocks (when not
using a dedicated mock -- preferred, in this case) is:
var args = some.method.mostRecentCall().args
expect(args[1]).toEqual(2)
Apologies if any of this syntax is a bit off -- don't have the jasmine
env loaded in front of me at the moment. Hope this helps!
Rajan
> --
> You received this message because you are subscribed to the Google Groups "Jasmine" group.
> To post to this group, send email to jasmi...@googlegroups.com.
> To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.
>
>
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.