Today I needed to prove that my Rails controller method deleted a cookie. After Googling for the answer (without success), I came up with the following. Within your controller: cookies.delete('cookie-to-delete') In your controller spec you can check that the cookie was deleted with: expect(response.cookies).to include('cookie-to-delete' => nil) Rails sets the cookies to be deleted to a value of nil. By checking for the presence of both the cookie name with a value of nil, you can ensure your controller code deleted the cookie.
I looked into Ruby on Rails a few weeks ago after seeing it discussed on Slashdot and Perl Monks. There are some interesting ideas in Ruby on Rails, so I thought it would be a good idea to explore Ruby itself. It feels very much like Perl, as members of Perl Monks have mentioned in other posts there. To get my head around Ruby I looked at the free online book, Programming Ruby.