Sha256: 52a1599a4933eec6af158a2eb892a548babaf8d2ae2c409a8d9905f90573bf70
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
Feature: Test resources with options Background: When I generate a new rails application And I generate resources "user post comment like" 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: Add resources options Given I write to "config/routes.rb" with: """ TestApp::Application.routes.draw do resources :posts, except: [:destroy, :update] resources :users do resources :posts, :comments, except: :destroy resources :likes, only: :index end resources :parents, controller: :users resources :observations end """ And I write to "spec/routing/routing_spec.rb" with: """ require 'spec_helper' describe 'Routes' do resources :posts, except: [:destroy, :update] resources :users do resources :posts, :comments, except: [:destroy, :show] resources :likes, only: :destroy end resources :parents, controller: :users resources :observations, controller: :comments end """ When I run routing specs Then the output should contain "49 examples, 11 failures"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoulda_routing-0.0.2 | features/resources_with_options.feature |
shoulda_routing-0.0.1 | features/resources_with_options.feature |