The current test_helper only allows requests straight to localhost. This change adds support for subdomains in the request_data hash of the various request methods
get_request(:subdomain => 'notifications.') do . . .
Added test_helper support for subdomains
Alternatively, I'd be happy to write up a commit that allows you to change the domain entirely (instead of just prepending a subdomain)
This looks pretty good. Although, to your comment I think having the ability to change the localhost:post to something user defined maybe the better solution. Can you change the patch over to pass :domain and replacing the localhost:port with the provided domain if it's present?
Added support for a :domain option in test_helper requests
Let me know how that looks, happy to make changes.
Merged. Thanks a lot for the patch.