Sha256: 7a0cbfa384a42e607d310b416e54d67a077db1117f00e7e38b6948784c596fe1

Contents?: true

Size: 727 Bytes

Versions: 2

Compression:

Stored size: 727 Bytes

Contents

Feature: Test resources

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoulda_routing-0.0.2 features/resources.feature
shoulda_routing-0.0.1 features/resources.feature