Sha256: 9c8f5ff4ac066738c269d1f556f9d20d8e1ea339ef02fc13a7c3394c4333f769

Contents?: true

Size: 1.21 KB

Versions: 27

Compression:

Stored size: 1.21 KB

Contents

Feature: Print snippets
  In order to make it easier to implement step definitions
  Developers should get a scaffolding for undefined step definitions
  
  Scenario: Cucumber doesn't know what language, and defaults to Ruby
    Given a standard Cucumber project directory structure
    And a file named "features/x.feature" with:
      """
      Feature: X
        Scenario: Y
          Given Z
          Given Q
      """
    When I run cucumber features
    Then STDERR should be empty
    And it should pass with
      """
      Feature: X

        Scenario: Y # features/x.feature:2
          Given Z   # features/x.feature:3
          Given Q   # features/x.feature:4

      1 scenario (1 undefined)
      2 steps (2 undefined)

      You can implement step definitions for undefined steps with these snippets:
      
      Given /^Z$/ do
        pending # express the regexp above with the code you wish you had
      end

      Given /^Q$/ do
        pending # express the regexp above with the code you wish you had
      end

      If you want snippets in a different programming language,
      just make sure a file with the appropriate file extension
      exists where cucumber looks for step definitions.


      """
  

Version data entries

27 entries across 25 versions & 8 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/default_snippets.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/legacy_features/default_snippets.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/legacy_features/default_snippets.feature
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/default_snippets.feature
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/default_snippets.feature
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/legacy_features/default_snippets.feature
casecumber-1.2.1.cb2 legacy_features/default_snippets.feature
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/legacy_features/default_snippets.feature
cucumber-1.2.1 legacy_features/default_snippets.feature
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/default_snippets.feature
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/legacy_features/default_snippets.feature
cucumber-1.2.0 legacy_features/default_snippets.feature
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/default_snippets.feature
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/default_snippets.feature
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/default_snippets.feature
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/default_snippets.feature
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/default_snippets.feature
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/legacy_features/default_snippets.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-1.1.9/legacy_features/default_snippets.feature
cucumber-1.1.9 legacy_features/default_snippets.feature