lib/chutney/linter/missing_verification.rb in chutney-2.2.1 vs lib/chutney/linter/missing_verification.rb in chutney-3.0.0.beta.1
- old
+ new
@@ -1,12 +1,14 @@
+# frozen_string_literal: true
+
require 'chutney/linter'
module Chutney
# service class to lint for missing verifications
class MissingVerification < Linter
def lint
filled_scenarios do |feature, scenario|
- then_steps = scenario[:steps].select { |step| then_word?(step[:keyword]) }
+ then_steps = scenario.steps.select { |step| then_word?(step.keyword) }
next unless then_steps.empty?
add_issue(I18n.t('linters.missing_test_verification'), feature, scenario)
end
end