Sha256: 1d24996d1b9a7d90515b5cd4c8a3ae6b0a13df47c9671709aa12a4338136beb0

Contents?: true

Size: 1.23 KB

Versions: 18

Compression:

Stored size: 1.23 KB

Contents

Feature: Avoid Outline for single Example
  As a Business Analyst
  I do not want a period at the end of the scenario
  so that it's easier to reuse verification steps

  Background: Prepare Testee
    Given a file named "lint.rb" with:
      """
      $LOAD_PATH << '../../lib'
      require 'gherkin_lint'

      linter = GherkinLint::GherkinLint.new
      linter.enable %w(AvoidOutlineForSingleExample)
      linter.analyze 'lint.feature'
      exit linter.report

      """

  Scenario: Steps With Period
    Given a file named "lint.feature" with:
      """
      Feature: Test
        Scenario Outline: A
          When <A>
          Then <B>

        Examples: Invalid
          | A | B |
          | a | b |
      """
    When I run `ruby lint.rb`
    Then it should fail with exactly:
      """
      AvoidOutlineForSingleExample - Better write a scenario
        lint.feature (2): Test.A

      """

  Scenario: Valid Example
    Given a file named "lint.feature" with:
      """
      Feature: Test
        Scenario Outline: A
          When <A>
          Then <B>

        Examples: Invalid
          | A | B |
          | a | b |
          | c | d |
      """
    When I run `ruby lint.rb`
    Then it should pass with exactly:
      """

      """

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gherkin_lint-0.6.3 features/avoid_outline_for_single_example.feature
gherkin_lint-0.6.2 features/avoid_outline_for_single_example.feature
gherkin_lint-0.6.1 features/avoid_outline_for_single_example.feature
gherkin_lint-0.6.0 features/avoid_outline_for_single_example.feature
gherkin_lint-0.5.0 features/avoid_outline_for_single_example.feature
gherkin_lint-0.4.4 features/avoid_outline_for_single_example.feature
gherkin_lint-0.4.3 features/avoid_outline_for_single_example.feature
gherkin_lint-0.4.2 features/avoid_outline_for_single_example.feature
gherkin_lint-0.4.1 features/avoid_outline_for_single_example.feature
gherkin_lint-0.4.0 features/avoid_outline_for_single_example.feature
gherkin_lint-0.3.1 features/avoid_outline_for_single_example.feature
gherkin_lint-0.3.0 features/avoid_outline_for_single_example.feature
gherkin_lint-0.1.2 features/avoid_outline_for_single_example.feature
gherkin_lint-0.1.1 features/avoid_outline_for_single_example.feature
gherkin_lint-0.1.0 features/avoid_outline_for_single_example.feature
gherkin_lint-0.0.14 features/avoid_outline_for_single_example.feature
gherkin_lint-0.0.13 features/avoid_outline_for_single_example.feature
gherkin_lint-0.0.12 features/avoid_outline_for_single_example.feature