Sha256: 9d8b093be738ae4c794bdd724a9be1440e648bbe7c17c5924c2f02596d514179

Contents?: true

Size: 942 Bytes

Versions: 1

Compression:

Stored size: 942 Bytes

Contents

Feature: Support nested namespaces

  Background:
    When I generate a new rails application
    And I generate resources "user post" in namespace "admin::control"
    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 nested namespaces
    Given I write to "config/routes.rb" with:
      """
      TestApp::Application.routes.draw do
        namespace :admin do
          namespace :control do
            resources :users
          end
        end
      end
      """
    And I write to "spec/routing/routing_spec.rb" with:
      """
      require 'spec_helper'

      describe 'Routes' do
        namespace :admin do
          namespace :control do
            resources :users, :posts
          end
        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/nested_namespaces.feature