lib/cucumber/cli/main.rb in cucumber-0.4.2 vs lib/cucumber/cli/main.rb in cucumber-0.4.3
- old
+ new
@@ -67,14 +67,16 @@
true
end
def exceeded_tag_limts?(features)
exceeded = false
- configuration.options[:tag_names].each do |tag_name, limit|
- if !Ast::Tags.exclude_tag?(tag_name) && limit
- tag_count = features.tag_count(tag_name)
- if tag_count > limit.to_i
- exceeded = true
+ configuration.options[:tag_names].each do |tag_list|
+ tag_list.each do |tag_name, limit|
+ if !Ast::Tags.exclude_tag?(tag_name) && limit
+ tag_count = features.tag_count(tag_name)
+ if tag_count > limit.to_i
+ exceeded = true
+ end
end
end
end
exceeded
end