module ActionDispatch::Assertions::RoutingAssertions

def fail_on(exception_class, message)

def fail_on(exception_class, message)
  yield
rescue exception_class => e
  raise Minitest::Assertion, message || e.message
end