Sha256: 78ff21864176acd2b1be0f108ca7756d246f57dc62b45bf48f2534b2055f6319
Contents?: true
Size: 1.25 KB
Versions: 18
Compression:
Stored size: 1.25 KB
Contents
Feature: Missing Scenario Name As a Customer I want named scenarios so that I know what this scenario is about without reading it Background: Prepare Testee Given a file named "lint.rb" with: """ $LOAD_PATH << '../../lib' require 'gherkin_lint' linter = GherkinLint::GherkinLint.new linter.enable %w(MissingScenarioName) linter.analyze 'lint.feature' exit linter.report """ Scenario: Missing Scenario Name Given a file named "lint.feature" with: """ Feature: Test Scenario: """ When I run `ruby lint.rb` Then it should fail with exactly: """ MissingScenarioName - No Scenario Name lint.feature (2): Test """ Scenario: Missing Scenario Outline Name Given a file named "lint.feature" with: """ Feature: Test Scenario Outline: """ When I run `ruby lint.rb` Then it should fail with exactly: """ MissingScenarioName - No Scenario Name lint.feature (2): Test """ Scenario: Valid Example Given a file named "lint.feature" with: """ Feature: Test Scenario: A """ When I run `ruby lint.rb` Then it should pass with exactly: """ """
Version data entries
18 entries across 18 versions & 1 rubygems