class Athena::Routing::Spec::MockRouteCollection
Overview
Test implementation of ART::RouteCollection
that allows routes to be scoped to a specific instance and added manually.
Defined in:
spec.crInstance Method Summary
- #add(name : String, route : ART::ActionBase) : Nil
- #add(route : ART::ActionBase) : Nil
-
#routes : Hash(String, ART::ActionBase)
Returns the routes hash.
Instance methods inherited from class Athena::Routing::RouteCollection
each(&) : Nileach each, get(name : String) : ART::ActionBase get, get?(name : String) : ART::ActionBase | Nil get?, routes : Hash(String, ART::ActionBase) routes
Instance Method Detail
def routes : Hash(String, ART::ActionBase)
#
Description copied from class Athena::Routing::RouteCollection
Returns the routes hash.