Sha256: caf04b51e60134904f2f083ee26bffb0163c8a40c655b6d2bd5f7f018823b1e0

Contents?: true

Size: 616 Bytes

Versions: 7

Compression:

Stored size: 616 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.

    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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec-rails-3.0.0.beta2 features/routing_specs/README.md
rspec-rails-2.99.0.beta2 features/routing_specs/README.md
rspec-rails-2.14.1 features/routing_specs/README.md
rspec-rails-3.0.0.beta1 features/routing_specs/README.md
rspec-rails-2.99.0.beta1 features/routing_specs/README.md
rspec-rails-2.14.0 features/routing_specs/README.md
rspec-rails-2.13.1 features/routing_specs/README.md