… when passing a regexp as :uri
…se headers using string option keys, too
…eded here is just singly nested
…h more than one colon in them, which doesn't seem to be legal anyway The RFC doesn't mention this, but either way, it's not possible to reliably determine which part is the username and which is the password when handling the request, so the only way would be to iterate through the possible permutations. Yuck.
…included escaped unsafe characters
…ver regex matches when determining which response to use
…tical strings and regexes
…able (instead of returning nil when there are no matches)
That way, if a Net::HTTP method doesn't yield, the assertions won't be silently skipped. Hat tip to Roman2K for pointing this out.
… state for all tests
…x matches a request URI. Less confusing this way.
… request methods are yielded with the registered response body
…ead of having a duplicate just for regexes