I'm using the following technique to set a wild-card cookie for our domain:
cookies['root_domain_flash_warning'] = {
'value' => 'mistakes have been made!',
'domain' => ".#{APP_DOMAIN}",
'expires' => 2.minutes.from_now
}
Which seems to work handily. Unfortunately I can't seem to look up anything but the value associated with the 'value' key in the hash passed to CookieJar#[]= because of the fact that CookieJar#[] doesn't actually return the options hash passed to its reciprocal method.
Does anyone know of a way of verifying the domain a cookie has been set for in a functional test?