Module: RSpec::Rails::Matchers::RedirectTo Private
- Included in:
- ControllerExampleGroup, RequestExampleGroup
- Defined in:
- lib/rspec/rails/matchers/redirect_to.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Matcher for redirects.
Instance Method Summary collapse
-
#redirect_to(target) ⇒ Object
private
Delegates to
assert_redirected_to
.
Instance Method Details
#redirect_to(target) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Delegates to assert_redirected_to
.
32 33 34 |
# File 'lib/rspec/rails/matchers/redirect_to.rb', line 32 def redirect_to(target) RedirectTo.new(self, target) end |