Sha256: 846349dd7bf41ff87f6c511ab3a2bec84de3fc05cba88233a17940f272b51e85

Contents?: true

Size: 818 Bytes

Versions: 1

Compression:

Stored size: 818 Bytes

Contents

Feature: Support namespaces

  Background:
    When I generate a new rails application
    And I generate resources "user" in namespace "admin"
    And I configure the application to use rspec-rails
    And I run the rspec generator
    And I configure the application to use "shoulda_routing"

  Scenario: Support namespaces
    Given I write to "config/routes.rb" with:
      """
      TestApp::Application.routes.draw do
        namespace :admin do
          resources :users
        end
      end
      """
    And I write to "spec/routing/routing_spec.rb" with:
      """
      require 'spec_helper'

      describe 'Routes' do
        namespace :admin do
          resources :users, :posts
        end
      end
      """
    When I run routing specs
    Then the output should contain "14 examples, 7 failures"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoulda_routing-0.0.2 features/namespaces.feature