class ActionDispatch::Integration::Session

def host!(name)

session.host! "www.example.com"

Set the host name to use in the next request.
def host!(name)
  @host = name
end