lib/cucumber/ast/background.rb in casecumber-1.0.2.1 vs lib/cucumber/ast/background.rb in casecumber-1.2.1.cb2

- old
+ new

@@ -94,8 +94,19 @@ @exception = exception @current_visitor.visit_exception(@exception, :failed) end + # Override this method, as there are situations where the background + # wind up being the one called fore Before scenarios, and + # backgrounds don't have tags. + def source_tags + [] + end + + def source_tag_names + source_tags.map { |tag| tag.name } + end + end end end