module Shoulda::Matchers::ActionController

def redirect_to(url_or_description, &block)

it { should redirect_to(users_path) }
it { should redirect_to('http://somewhere.com') }

Example:

Ensures a controller redirected to the given url.
:nodoc:
def redirect_to(url_or_description, &block)
  RedirectToMatcher.new(url_or_description, self, &block)
end