module RSpec::Rails::Matchers::RedirectTo

Matcher for redirects.

Public Instance Methods

redirect_to(target) click to toggle source

Delegates to `assert_redirected_to`.

@example

expect(response).to redirect_to(:action => "new")
# File lib/rspec/rails/matchers/redirect_to.rb, line 32
def redirect_to(target)
  RedirectTo.new(self, target)
end