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

- old
+ new

@@ -1,13 +1,15 @@ +# frozen_string_literal: true + module Chutney # service class to lint for too long steps class TooLongStep < Linter def lint steps do |feature, scenario, step| - next if step[:text].length <= maxlength + next if step.text.length <= maxlength add_issue( - I18n.t('linters.too_long_step', length: step[:text].length, max: maxlength), + I18n.t('linters.too_long_step', length: step.text.length, max: maxlength), feature, scenario ) end end