method

assert_routing

assert_routing(path, options, defaults={}, extras={}, message=nil)
public

Asserts that path and options match both ways; in other words, the URL generated from options is the same as path, and also that the options recognized from path are the same as options. This essentially combines assert_recognizes and assert_generates into one step.