Sha256: d10f66f4e13bf91fe4148734174cb365a1328dbb5f1d023a41dab1bbb9ec0e1f

Contents?: true

Size: 502 Bytes

Versions: 32

Compression:

Stored size: 502 Bytes

Contents

Feature: named routes

  Routing specs have access to named routes.

  Scenario: access named route
    Given a file named "spec/routing/widget_routes_spec.rb" with:
      """
      require "spec_helper"

      describe "routes to the widgets controller" do
        it "routes a named route" do
          {:get => new_widget_path}.
            should route_to(:controller => "widgets", :action => "new")
        end
      end
      """
    When I run `rspec spec`
    Then the examples should all pass

Version data entries

32 entries across 27 versions & 4 rubygems

Version Path
rspec-rails-2.8.1 features/routing_specs/named_routes.feature
rspec-rails-2.8.0 features/routing_specs/named_routes.feature
rspec-rails-2.8.0.rc2 features/routing_specs/named_routes.feature
rspec-rails-2.8.0.rc1 features/routing_specs/named_routes.feature
rspec-rails-2.7.0 features/routing_specs/named_routes.feature
rspec-rails-2.7.0.rc1 features/routing_specs/named_routes.feature
rspec-rails-2.6.1 features/routing_specs/named_routes.feature
rspec-rails-2.6.1.beta1 features/routing_specs/named_routes.feature
rspec-rails-2.6.0 features/routing_specs/named_routes.feature
rspec-rails-2.6.0.rc6 features/routing_specs/named_routes.feature
rspec-rails-2.6.0.rc4 features/routing_specs/named_routes.feature
rspec-rails-2.6.0.rc2 features/routing_specs/named_routes.feature