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.cr

Instance Method Summary

Instance methods inherited from class Athena::Routing::RouteCollection

each(&) : Nil
each
each
, get(name : String) : ART::ActionBase get, get?(name : String) : ART::ActionBase | Nil get?, routes : Hash(String, ART::ActionBase) routes

Instance Method Detail

def add(name : String, route : ART::ActionBase) : Nil #

[View source]
def add(route : ART::ActionBase) : Nil #

[View source]
def routes : Hash(String, ART::ActionBase) #
Description copied from class Athena::Routing::RouteCollection

Returns the routes hash.


[View source]