Sha256: 5a4981933c858e7660bb3ac0a1442cb38ddd26cf60c9d6da29aeda12e3a3c1eb

Contents?: true

Size: 630 Bytes

Versions: 8

Compression:

Stored size: 630 Bytes

Contents

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.

    { :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

8 entries across 8 versions & 3 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-rails-2.13.0/features/routing_specs/README.md
rspec-rails-2.13.0 features/routing_specs/README.md
rspec-rails-2.12.2 features/routing_specs/README.md
rspec-rails-2.12.1 features/routing_specs/README.md
rspec-rails-2.12.0 features/routing_specs/README.md
rspec-rails-2.11.4 features/routing_specs/README.md
gem_repackager-0.1.0 support/gems/rspec-rails-2.11.0/features/routing_specs/README.md
rspec-rails-2.11.0 features/routing_specs/README.md