When you get a 0 instead of an HTTP response code, the page probably
didn't render correctly. Look at your test.log or, in your test:
puts response.body
That may give you a better idea what's going on.
Do you know anything more about this? I ask because usually when I
have an error in a template or action it is output as an exception in
the test summary. Does this error show up when there is a specific
type of error? for instance, if rails locks up? or if it fails in a
before_filter? or something?
--
Jonathan
I've never characterized the problems that cause this beyond the fact
that it happens when testing controllers. The key thing is you didn't
get an HTTP response code. So you know you didn't get through render,
which makes it likely that your code is flawed. That's really the
first thing you wanted to know from your test anyway, right?
--
Jonathan
all fixed now,
Thanks for your help s.ross :-)
--
Jonathan