A small suite of assertions that test responses from Rails applications.
| Public Methods |
| assert_redirected_to |
Assert 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_to(:controller => "weblog",
:action => "show") and so on.
|
| assert_response |
Asserts that the response is one of the following types:
|
| assert_template |
Asserts that the request was rendered with the appropriate template file.
|
<code/>and<pre/>for code samples.