#2768 Tests should see all cookies, not just those that are created or changed in the controller

I've noticed that when testing cookies, the test can only see the
values of cookies that have been changed in actions and doesn't take
into account what the cookie was set to originally.

For example, this test passes (given do_something doesn't nothing to
the cookie) when you'd expect cookie['foo'] to equal 'bar'.

def test_should_delete_the_cookie
  @request.cookies['foo'] = 'bar'
  get :do_something
  assert_nil cookies['foo']

I've created a ticket:

which includes a patch.