class Rack::Test::CookieJar

def initialize_copy(other)

Ensure the copy uses a distinct cookies array.
def initialize_copy(other)
  super
  @cookies = @cookies.dup
end