class Chutney::BackgroundRequiresMultipleScenarios
service class for check that there are multiple scenarios once a background is used
Constants
- MESSAGE
Public Instance Methods
lint()
click to toggle source
# File lib/chutney/linter/background_requires_multiple_scenarios.rb, line 10 def lint background do |feature, background| next unless background next unless feature&.tests next if feature.tests.length >= 2 add_issue(I18n.t('linters.background_requires_multiple_scenarios'), feature, background) end end