class Cucumber::Filters::TagLimits::Verifier::Breach
Constants
- INDENT
Attributes
limit[R]
locations[R]
tag_name[R]
Public Class Methods
new(tag_name, limit, locations)
click to toggle source
# File lib/cucumber/filters/tag_limits/verifier.rb, line 33 def initialize(tag_name, limit, locations) @tag_name = tag_name @limit = limit @locations = locations end
Public Instance Methods
to_s()
click to toggle source
# File lib/cucumber/filters/tag_limits/verifier.rb, line 39 def to_s [ "#{tag_name} occurred #{tag_count} times, but the limit was set to #{limit}", *locations.map(&:to_s) ].join("\n#{INDENT}") end
Private Instance Methods
tag_count()
click to toggle source
# File lib/cucumber/filters/tag_limits/verifier.rb, line 48 def tag_count locations.count end