I’m trying to debug a spy on jQuery.post that isn’t firing, so as a sanity check, I tried
spyOn(this.viewModel.requests, 'submitRequest').andReturn('fooz');Expected 'fooz' to equal 'foo'.
But when I change 'fooz' to 'foo' in the argument to andReturn, the test fails with
Expected spy on submitRequest to have been called.
The spy is returning the canned value, so why does toHaveBeenCalled fail?
--
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.