module RSpec::Rails::Matchers::RedirectTo

Public Instance Methods

redirect_to(target) click to toggle source

Delegates to `assert_redirected_to`

@example

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