module RSpec::Rails::Matchers::RedirectTo
Matcher for redirects.
Public Instance Methods
Source
# File lib/rspec/rails/matchers/redirect_to.rb, line 32 def redirect_to(target) RedirectTo.new(self, target) end
Delegates to ‘assert_redirected_to`.
@example
expect(response).to redirect_to(:action => "new")