I was looking for a way to set the request host when testing an application I am currently working on. It has ‘basecamp-style’ subdomains; I wanted to test these.
Insert the following snippet at the bottom of test_helper.rb to set the host to ‘test.local.host’