r-cochran / cuke_sniffer

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

Rule misfiring: out of order steps #98

Closed enkessler closed 7 years ago

enkessler commented 7 years ago

The following scenario

Scenario: Foo
  Given a step
  And a step
  And a step
  When a step
  When a step
  And a step
  Then a step

will correctly trigger the 'Given/When/Then used multiple times in the same Scenario' rule but it will also trigger the 'Scenario steps out of Given/When/Then order' even though any Givens comes before any Whens which, in turn, come before any Thens.