# File lib/cucumber/filters/tag_limits/verifier.rb, line 32 def initialize(tag_name, limit, locations) @tag_name = tag_name @limit = limit @locations = locations end
# File lib/cucumber/filters/tag_limits/verifier.rb, line 38 def to_s [ "#{tag_name} occurred #{tag_count} times, but the limit was set to #{limit}", *locations.map(&:to_s) ].join("\n#{INDENT}") end
# File lib/cucumber/filters/tag_limits/verifier.rb, line 47 def tag_count locations.count end