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