r-cochran / cuke_sniffer

A ruby library used to root out smells in your cukes.
MIT License
44 stars 28 forks source link

Incorrect identification of dead steps #91

Open Ashley-Qa-TestEngineer opened 8 years ago

Ashley-Qa-TestEngineer commented 8 years ago

Step definitions with the letters 'Or' within the string i.e (Ordinary) are identified as a dead step due to the 'Or' being removed. This takes place when the build_steps_map method is invoked and step definitions are sanitised. sanitized_step = step.gsub(STEP_STYLES, "") STEPSTYLES = /(?