Sha256: e60c86edca6688ac6a5b3c598a18a3554caafa9c78ec9289e6edbcd728a932d6

Contents?: true

Size: 631 Bytes

Versions: 29

Compression:

Stored size: 631 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

29 entries across 24 versions & 3 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/routing_specs/README.md
rspec-rails-2.10.1 features/routing_specs/README.md
rspec-rails-2.10.0 features/routing_specs/README.md
rspec-rails-2.9.0 features/routing_specs/README.md
rspec-rails-2.9.0.rc2 features/routing_specs/README.md
rspec-rails-2.8.1 features/routing_specs/README.md
rspec-rails-2.8.0 features/routing_specs/README.md
rspec-rails-2.8.0.rc2 features/routing_specs/README.md