Using proper grammar in Gherkin
问题 It seems to be very difficult to look up documentation about Gherkin, so I was wondering if there was a way to augment step definitions to enable the tester to use proper grammar. One example that shows what I mean is: ...Testing... Then I see there is 1 item ...More testing... Then I see there are 2 items Obviously, these two steps would use the same code. I defined a step definition like this which almost works: Then(/^I see there (is|are) (\d+) item(s)?$/) do |item_count| ...code... end