Class: Cucumber::Filters::TagLimits::Verifier

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/filters/tag_limits/verifier.rb

Defined Under Namespace

Classes: Breach

Instance Method Summary collapse

Constructor Details

#initialize(tag_limits) ⇒ Verifier

Returns a new instance of Verifier



7
8
9
# File 'lib/cucumber/filters/tag_limits/verifier.rb', line 7

def initialize(tag_limits)
  @tag_limits = tag_limits
end

Instance Method Details

#verify!(test_case_index) ⇒ Object



11
12
13
14
# File 'lib/cucumber/filters/tag_limits/verifier.rb', line 11

def verify!(test_case_index)
  breaches = collect_breaches(test_case_index)
  raise TagLimitExceededError.new(*breaches) unless breaches.empty?
end