Sha256: ad7780cd2ab21db0034d2813ff17b388aeda9dd5a1bd1a5723434ccad8127e56
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
Feature: Invalid File Name As a Business Analyst I want to be warned about invalid file name so that I name all features consistently Background: Prepare Testee Given a file named "lint.rb" with: """ $LOAD_PATH << '../../lib' require 'gherkin_lint' require 'optparse' options = {} OptionParser.new { |opts| }.parse! linter = GherkinLint::GherkinLint.new linter.enable %w(InvalidFileName) ARGV.each { |file| linter.analyze file } exit linter.report """ Scenario Outline: Invalid File Names Given a file named "<name>.feature" with: """ Feature: Test """ When I run `ruby lint.rb "<name>.feature"` Then it should fail with exactly: """ InvalidFileName - Feature files should be snake_cased <name>.feature """ Examples: Invalid Names | name | | Lint | | lintMe | | lint me | | lint-me | Scenario: Valid Example Given a file named "lint.feature" with: """ Feature: Test """ When I run `ruby lint.rb lint.feature` Then it should pass with exactly: """ """
Version data entries
5 entries across 5 versions & 1 rubygems