Testing for a redirect using Capybara and Selenium WebDriver

I just spent the better part of 8 hours trying to figure out how to do this. The Selenium WebDriver API docs are pretty bewildering...