ranchlan
2010-Jun-18 16:55 UTC
Set server-side environment variables in integration testing
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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.