Sha256: 5d405066283fbb340c8b02b1022d6858fdc72e45ae094879b6115b38fa939441

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

Feature: Inspect query string

  Scenario: Inspect query string
    Given I have created a new Rails 3 app "rails-3-app" with cucumber-rails support
    And I successfully run `rails generate cucumber:feature post title:string body:text number:integer published:boolean`
    And I successfully run `rails generate scaffold post title:string body:text number:integer published:boolean`
    And I successfully run `rails generate scaffold cuke name:string`
    And I overwrite "app/controllers/cukes_controller.rb" with:
      """
      class CukesController < ApplicationController
        def index
          redirect_to cuke_path(10, {:name => 'cucumber', :what => 'vegetable'})
        end
        
        def show
          render :text => "Cuke #{params[:id]}"
        end
      end
      """
    And I write to "features/tests.feature" with:
      """
      Feature: Tests
        Scenario: Tests
          When I go to the cukes page
          Then I should have the following query string: 
            | name | cucumber  |
            | what | vegetable |
          And I should see "Cuke 10"
      """
    And I run `bundle exec rake db:migrate cucumber`
    Then it should pass with:
       """
       3 scenarios (3 passed)
       16 steps (16 passed)
       """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber-rails-0.5.1 features/inspect_query_string.feature