RiverGlide / CukeSalad

Cucumber specs / tests without step-definitions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some tasks are just a one line call to a method of the same name

antonymarcano opened this issue · comments

Some tasks end up having just one line in them and that line is much the same as the task name.

This may cause problems for some so maybe it should be something you enable or disable with options? Not sure.

Examples:

  • When there's a task and a method by the same name, perform the task
    Step: When I switch on the calculator
    Task: in_order_to 'switch on the calculator' do ...
    Method: def switch_on_the_calculator
  • When there's no task, and method with the same name on the role, call the method
    Step: When I switch on the calculator
    Method: def switch_on_the_calculator