Sha256: 9aaf762ab2478e5fdeba77c54cead982aa006b70d0dd8172dc0f64bd94e46a40
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
require 'gherkin_lint/linter' module GherkinLint # service class to lint for missing scenario names class MissingScenarioName < Linter def lint scenarios do |file, feature, scenario| name = scenario.key?('name') ? scenario['name'].strip : '' references = [reference(file, feature, scenario)] next unless name.empty? add_error(references, 'No Scenario Name') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gherkin_lint-0.3.1 | lib/gherkin_lint/linter/missing_scenario_name.rb |
gherkin_lint-0.3.0 | lib/gherkin_lint/linter/missing_scenario_name.rb |