Sha256: f604e6c1c0709be0de65a343d28076876b9f70e6729919df7e8e9a26901325ba
Contents?: true
Size: 819 Bytes
Versions: 2
Compression:
Stored size: 819 Bytes
Contents
Feature: Test nested resources Background: When I generate a new rails application And I generate resources "user post comment" 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: Test nested resources Given I write to "config/routes.rb" with: """ TestApp::Application.routes.draw do resources :users do resources :posts end end """ And I write to "spec/routing/routing_spec.rb" with: """ require 'spec_helper' describe 'Routes' do resources :users do resources :posts, :comments end end """ When I run routing specs Then the output should contain "21 examples, 7 failures"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoulda_routing-0.0.2 | features/nested_resources.feature |
shoulda_routing-0.0.1 | features/nested_resources.feature |