Testing with specific request env

Hi,

I can’t seem to be able to add specific headers to a
ActionController::TestRequest. The controller never sees them.

I have recreated the problem in the most simple form I could

line 28 should pass right ?
http://pastie.caboo.se/34430

this works fine using the normal CGIRequest object … :confused: but makes it
hard to test controllers whose actions depend on headers which are not
used by rails (such as HTTP_ACCEPT_LANGUAGE)

have I missed something ?

thx
jean

I join a tgz with a complete and fresh rails 1.2.1 and all the
necessary files to run rake test and see it fail.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs