Sha256: 968d91fe1a1dfab6f7fbff46617234d8de35748c6f16c342d6949215ad909340

Contents?: true

Size: 462 Bytes

Versions: 9

Compression:

Stored size: 462 Bytes

Contents

module Chutney
  # service class to lint for bad scenario names  
  class GivensAfterBackground < Linter
    def lint
      return if background.nil?
      return if background.empty?
      
      filled_scenarios do |feature, scenario|
        scenario[:steps].each do |step|
          if given_word?(step[:keyword])
            add_issue(I18n.t('linters.givens_after_background'), feature, scenario, step)
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
chutney-2.2.1 lib/chutney/linter/givens_after_background.rb
chutney-2.1.1 lib/chutney/linter/givens_after_background.rb
chutney-2.1.0 lib/chutney/linter/givens_after_background.rb
chutney-2.0.3.1 lib/chutney/linter/givens_after_background.rb
chutney-2.0.3 lib/chutney/linter/givens_after_background.rb
chutney-2.0.2 lib/chutney/linter/givens_after_background.rb
chutney-2.0.1 lib/chutney/linter/givens_after_background.rb
chutney-2.0.0 lib/chutney/linter/givens_after_background.rb
chutney-2.0.0.rc1 lib/chutney/linter/givens_after_background.rb