Sha256: b8628ced622127ef484fa249b1e8453d7b799884963273b312d55801fe0baf66
Contents?: true
Size: 1.1 KB
Versions: 13
Compression:
Stored size: 1.1 KB
Contents
Feature: File Name Differs Feature Name As a Business Analyst I want to be if file and feature names differ so that reader understand the feature just by the file name Background: Prepare Testee Given a file named "lint.rb" with: """ $LOAD_PATH << '../../lib' require 'gherkin_lint' linter = GherkinLint::GherkinLint.new linter.enable %w(FileNameDiffersFeatureName) linter.analyze 'lint.feature' exit linter.report """ Scenario: File Name and Feature Name Differ Given a file named "lint.feature" with: """ Feature: Test """ When I run `ruby lint.rb "lint.feature"` Then it should fail with exactly: """ FileNameDiffersFeatureName - Feature name should be 'Lint' lint.feature (1): Test """ Scenario Outline: Valid Example Given a file named "lint.feature" with: """ Feature: <name> """ When I run `ruby lint.rb lint.feature` Then it should pass with exactly: """ """ Examples: Valid Names | name | | lint | | Lint | | LINT |
Version data entries
13 entries across 13 versions & 1 rubygems