Integrationtest with Subdomain

Hello,

I have a app which uses Subdomains for User-Account “username.my.app”
How can I build an integration test for this app with webrat. i don´t
know how can I use my subdomain logic in the test.

thanks