Module: RSpec::Rails::Matchers::RedirectTo
- Included in:
- ControllerExampleGroup, RequestExampleGroup
- Defined in:
- lib/rspec/rails/matchers/redirect_to.rb
Defined Under Namespace
Classes: RedirectTo
Instance Method Summary (collapse)
-
- (Object) redirect_to(target)
Delegates to
assert_redirected_to
.
Instance Method Details
- (Object) redirect_to(target)
Delegates to assert_redirected_to
33 34 35 |
# File 'lib/rspec/rails/matchers/redirect_to.rb', line 33 def redirect_to(target) RedirectTo.new(self, target) end |