Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
Functional test with subdomains
2 Posts
Functional test with subdomains

I just added subdomains to my app and of course all my tests broke but this was expected. The problem is I cannot figure out how to set the host domain for my tests. I have seen several posts all over but none of them have worked. I am using rails 2.3.2. Does anyone know how to do this? Right now it is set to the default of test.host.

Figured it out.

module FunctionalHelper

def setup
    @request.host = 'nicks.contrived.com'
end

end

2 Posts
Login to add your message