Forum: Ruby on Rails incorrect response header with functional test?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jason (Guest)
on 2007-03-26 02:59
(Received via mailing list)
I'm testing a controller by doing an ajax post to create an entry,
then a normal get to see that entry show up on a page.  After the get
the @response.body is correct, but @response.headers still says the
content type is "text/javascript", so assert_select doesn't work.  It
seems like the second request, the get, would set the content type to
"text/html" since it's just a normal page.  Am I off base here?  Any
help is appreciated.

This topic is locked and can not be replied to.