Dry up your code: Decisive OR clause [2nd mile]
2 . Decisive OR clause Lets take step #3 of the same scenario: #1 - Given the "user" launches the app #2 - When he logs in #3 - Then he sees the home page Poss ible (logical) variation s o f step #3 could be # 3 .0 - Then he sees the home page Def #1: T hen /^he sees the home page $/ do @home_ page. should be _displayed end # 3 .1 - Then he does not see the home page Def #2: T hen /^ he does not see the home page $/ do @home_ page. should _not be _displayed end Now lets use the power of Decisive OR c lause to define the step as Def: T hen /^he ( sees|does not see) the home pa...