Sha256: e46d5e4b0ad61e1acca992e9096e30cccfe8188557bcccc03002fcc459e8bcd1
Contents?: true
Size: 466 Bytes
Versions: 5
Compression:
Stored size: 466 Bytes
Contents
require 'gherkin_lint/linter' module GherkinLint # service class to lint for missing verifications class MissingVerification < Linter def lint filled_scenarios do |file, feature, scenario| then_steps = scenario['steps'].select { |step| step['keyword'] == 'Then ' } next if then_steps.length > 0 references = [reference(file, feature, scenario)] add_issue(references, 'No verification step') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems