lib/chutney/linter/missing_scenario_name.rb in chutney-2.2.1 vs lib/chutney/linter/missing_scenario_name.rb in chutney-3.0.0.beta.1

- old
+ new

@@ -1,14 +1,13 @@ +# frozen_string_literal: true + module Chutney # service class to lint for missing scenario names class MissingScenarioName < Linter def lint scenarios do |feature, scenario| - name = scenario.key?(:name) ? scenario[:name].strip : '' - next unless name.empty? - - add_issue(I18n.t('linters.missing_scenario_name'), feature, scenario) if name.empty? + add_issue(I18n.t('linters.missing_scenario_name'), feature, scenario) if scenario.name.empty? end end end end