Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: rails4-minites…

This branch is 3 commits ahead, 698 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
be_routable_matcher.feature
engine_routes.feature
named_routes.feature
route_to_matcher.feature

README.md

Routing specs live in the spec/routing directory, or any example group with :type => :routing.

Simple apps with nothing but standard RESTful routes won't get much value from routing specs, but they can provide significant value when used to specify customized routes, like vanity links, slugs, etc.

expect(:get => "/articles/2012/11/when-to-use-routing-specs").to route_to(
  :controller => "articles",
  :month => "2012-11",
  :slug => "when-to-use-routing-specs"
)

They are also valuable for routes that should not be available:

expect(:delete => "/accounts/37").not_to be_routable
Something went wrong with that request. Please try again.