ActionDispatch::Assertions::ResponseAssertions

module ActionDispatch::Assertions::ResponseAssertions

A small suite of assertions that test responses from Rails applications.

Public Instance Methods

assert_redirected_to(options = {}, message = nil) Show source

Asserts that the redirection options passed in match those of the redirect called in the latest action. This match can be partial, such that assert_redirected_to(controller: "weblog") will also match the redirection of redirect_