Commit Graph

4 Commits

Author SHA1 Message Date
Elliot Winkler 32705e6c37 Replace the with_port qualifier on route with port option 2018-01-25 22:31:23 -06:00
Elliot Winkler b4e0bcea3f Add with_port qualifier to the route matcher 2018-01-25 21:37:18 -06:00
Elliot Winkler ab5cae20c4 Revise the route matcher tests
Instead of using a before block, make a helper method (to keep with
the project style).
2018-01-25 21:37:18 -06:00
Elliot Winkler 8cf449b4ca Add a new Routing module
Why:

* The `route` matcher can not only be used within controller example
  groups but also routing example groups.
* Now that we are mixing matchers into specific example groups, `route`
  is no longer available in routing example groups.

To satisfy the above:

* Create a new module that contains a `route` method and returns a new
  instance of RouteMatcher. (RouteMatcher still lives in the
  ActionController namespace.)
* Mix this module into routing example groups when the gem configuration
  block is run.
2015-09-25 17:45:33 -06:00