burtlo/yard-cucumber — Issue #26: 'Step Definitions' menu doesn't deal with transforms properly
Author: jmerrifield
Created: 2011-10-11 11:12:25+00:00
State: open

In the example project, the step `Given /^that (#{CUSTOMER}) is a valid customer$/` is displayed normally on the Step Definitions list (on the page `/requirements/step_transformers.html#step_definitions`).

If you enable the 'step definitions' menu by editing the `~/.yard/config` file with something like the following:

````
:"yard-cucumber":
menus: [ 'features', 'tags', 'steps', 'step definitions' ]
````

Then in the 'Step Defs' dropdown, that `CUSTOMER` constant is fully expanded, so it is displayed as:

````
Given /^that ((?:(?:an?|the|(?:first|second|third)) customer|teddy bear)) is a valid customer$/
````

Some of my transforms run to 40 lines of code, and all that code is shown in the dropdown, for every step definition that references it. It would be great if the dropdown displayed the step def in the same way as on the 'Step Definitions' page.