Module: Hiptest::BehaveAddon
- Defined in:
- lib/hiptest-publisher/renderer_addons/behave_addon.rb
Instance Method Summary collapse
Instance Method Details
#walk_actionwords(aws) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/hiptest-publisher/renderer_addons/behave_addon.rb', line 5 def walk_actionwords(aws) base = super(aws) sorted_aws = aws.children[:actionwords] .sort_by {|aw| pattern = aw.children.fetch(:gherkin_pattern, "") [pattern.length, pattern] }.reverse @rendered_children[:sorted_actionwords] = sorted_aws.map {|aw| @rendered[aw]} return base end |