cucumber-attic / gherkin2

A fast Gherkin parser in Ragel (The parser behind Cucumber)
MIT License
381 stars 220 forks source link

fix for dissapearing examples tags #266

Closed calebTomlinson closed 11 years ago

calebTomlinson commented 11 years ago

The filter_formatter is clearing examples tags. Array.clear ends up clearing the objects in the array, which happens to be the same object that is still available to Examples#tags. Instead we just want to clear out @examples_tags for FilterFormatter.

I'm firing off this PR out before writing a new test. Also, I assume @examples_events should be handled the same way, but I'll come back to this soon if no one beats me to it.

os97673 commented 11 years ago

Could you please provide test for the problem you are trying to fix