Testing with specific request env


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 ?

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 ?


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.