class Cucumber::Filters::TagLimits::Verifier::Breach
Constants
- INDENT
Attributes
Public Class Methods
Source
# File lib/cucumber/filters/tag_limits/verifier.rb, line 31 def initialize(tag_name, limit, locations) @tag_name = tag_name @limit = limit @locations = locations end
Public Instance Methods
Source
# File lib/cucumber/filters/tag_limits/verifier.rb, line 37 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
Source
# File lib/cucumber/filters/tag_limits/verifier.rb, line 46 def tag_count locations.count end