My Rails application uses the SERVER_NAME environment variable to
decide how to display some of the web pages.

I want to do integration testing with this application but I do not
see how to force the request object's environment variable SERVER_NAME
to a particular value.

I would like to do something like this in the integration test file

  request.env["SERVER_NAME"]  = "www.example.com"

This does not work. Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to