ActionDispatch::Assertions::RoutingAssertions

module ActionDispatch::Assertions::RoutingAssertions

Suite of assertions to test routes generated by Rails and the handling of requests made to them.

Public Instance Methods

assert_generates(expected_path, options, defaults={}, extras={}, message=nil) Show source

Asserts that the provided options can be used to generate the provided path. This is the inverse of assert_recognizes. The extras parameter is used to tell the request the nam