assert_response

assert_response(type, message = nil) Instance Public methods Asserts that the response is one of the following types: :success - Status code was in the 200-299 range :redirect - Status code was in the 300-399 range :missing - Status code was 404 :error - Status code was in the 500-599 range You can also pass an explicit status number like assert_response(501) or its symbolic equivalent assert_response(:not_implemented). See Rack::Utils::SYMBOL_TO_STATUS_CODE for

assert_redirected_to

assert_redirected_to(options = {}, message=nil) Instance Public methods 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 that the redirection was to the "index" action on the WeblogController assert_redirected_to controller: "weblog", action: "ind

new

new(request) Class Public methods

assert_dom_not_equal

assert_dom_not_equal(expected, actual, message = nil) Instance Public methods The negated form of assert_dom_equivalent. # assert that the referenced method does not generate the specified HTML string assert_dom_not_equal '<a href="http://www.example.com">Apples</a>', link_to("Oranges", "http://www.example.com")

assert_dom_equal

assert_dom_equal(expected, actual, message = nil) Instance Public methods Test two HTML strings for equivalency (e.g., identical up to reordering of attributes) # assert that the referenced method generates the appropriate HTML string assert_dom_equal '<a href="http://www.example.com">Apples</a>', link_to("Apples", "http://www.example.com")

eager_load!

eager_load!() Class Public methods

add_renderer

add_renderer(key, &block) Class Public methods See Renderers.add

url_options

url_options() Instance Public methods

recycle!

recycle!() Instance Public methods

headers=

headers=(new_headers) Instance Public methods TODO : Rewrite tests using controller.headers= to use Rack env