Sha256: 6e53333a1279ce6759b324575cdf4ecf60e07b45495614066dce9cacddba946a

Contents?: true

Size: 585 Bytes

Versions: 3

Compression:

Stored size: 585 Bytes

Contents

Routing specs live in the `spec/routing` directory. 

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.

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

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

    { :delete => "/accounts/37" }.should_not be_routable

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-rails-2.5.0 features/routing_specs/README.md
rspec-rails-2.4.1 features/routing_specs/README.md
rspec-rails-2.4.0 features/routing_specs/README.md