Hi Phil,
The workaround is to visit the page and then delete a particular db record before triggering the event that causes the JS I’m testing to execute and make the call back to the server. That would result in the “not found” error that I want to test. It’s not as clean as I would like but it would do the job.
Maybe I’m wrong, but I don’t think webmock will work, because it’s set up to intercept web calls from my Rails program, right? In this case, the call will be made from JS running in the browser, so wouldn’t that preclude webmock from intercepting it, or is my understanding about that wrong?
I didn’t actually try webmock, because it’s not currently part of my build.
Jack
> To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/CAAk5Ok-KUmqi5%2BoZmSHSRB9uGTsk07XkvtHbVWLjF_H%2Bv9dDkg%40mail.gmail.com.