class Chutney::GivensAfterBackground

service class to lint for bad scenario names

Public Instance Methods

lint() click to toggle source
# File lib/chutney/linter/givens_after_background.rb, line 6
def lint
  return unless background

  filled_scenarios do |feature, scenario|
    scenario.steps.each do |step|
      add_issue(I18n.t('linters.givens_after_background'), feature, scenario, step) if given_word?(step.keyword)
    end
  end
end