Sha256: 676aca8ac15a06c703653b5d3b4f92b7d1a6d1f4bacba536d82408844aac6edd

Contents?: true

Size: 508 Bytes

Versions: 12

Compression:

Stored size: 508 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:
      """ruby
      require "spec_helper"

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-rails-2.13.0/features/routing_specs/named_routes.feature
rspec-rails-3.0.0.beta2 features/routing_specs/named_routes.feature
rspec-rails-2.99.0.beta2 features/routing_specs/named_routes.feature
rspec-rails-2.14.1 features/routing_specs/named_routes.feature
rspec-rails-3.0.0.beta1 features/routing_specs/named_routes.feature
rspec-rails-2.99.0.beta1 features/routing_specs/named_routes.feature
rspec-rails-2.14.0 features/routing_specs/named_routes.feature
rspec-rails-2.13.1 features/routing_specs/named_routes.feature
rspec-rails-2.13.0 features/routing_specs/named_routes.feature
rspec-rails-2.12.2 features/routing_specs/named_routes.feature
rspec-rails-2.12.1 features/routing_specs/named_routes.feature
rspec-rails-2.12.0 features/routing_specs/named_routes.feature