File: snippet.feature

package info (click to toggle)
cucumber 1.3.17-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,296 kB
  • ctags: 1,812
  • sloc: ruby: 13,576; python: 28; sh: 10; makefile: 10; tcl: 3
file content (23 lines) | stat: -rw-r--r-- 805 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Feature: Snippets
  In order to help speed up writing step definitions
  As a feature editor
  I want snippet suggestions for undefined step definitions

  Scenario: Snippet for undefined step with a pystring
    When I run cucumber features/undefined_multiline_args.feature:3 -s
    Then the output should contain
      """
      Given(/^a pystring$/) do |string|
        pending # express the regexp above with the code you wish you had
      end
      """

  Scenario: Snippet for undefined step with a step table
    When I run cucumber features/undefined_multiline_args.feature:9 -s
    Then the output should contain
      """
      Given(/^a table$/) do |table|
        # table is a Cucumber::Ast::Table
        pending # express the regexp above with the code you wish you had
      end
      """