Sha256: e2e50717aa3cdc716c43cd328bb6d18d83c3c3e6ee809a1960521e3a01fca6d8
Contents?: true
Size: 459 Bytes
Versions: 2
Compression:
Stored size: 459 Bytes
Contents
require 'gherkin_lint/linter' module GherkinLint # service class to lint for missing test actions class MissingTestAction < Linter def lint filled_scenarios do |file, feature, scenario| when_steps = scenario['steps'].select { |step| step['keyword'] == 'When ' } next unless when_steps.empty? references = [reference(file, feature, scenario)] add_error(references, 'No \'When\'-Step') 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_test_action.rb |
gherkin_lint-0.3.0 | lib/gherkin_lint/linter/missing_test_action.rb |