Skip to content

Commit

Permalink
Merge pull request cucumber#2 from achitu/docs-fix-keywords
Browse files Browse the repository at this point in the history
Docs fix keywords
  • Loading branch information
Alexandru Chitu authored and GitHub Enterprise committed Feb 14, 2023
2 parents 62d84ee + 983e180 commit b7914af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ func InitializeScenario(ctx *godog.ScenarioContext) {
Alternatively, you can also specify the keyword (Given, When, Then...) when creating the step definitions:
``` go
func InitializeScenario(ctx *godog.ScenarioContext) {
ctx.Given(`^I eat (\d+)$`, iEat)
ctx.When(`^there are (\d+) godogs$`, thereAreGodogs)
ctx.When(`^I eat (\d+)$`, iEat)
ctx.Given(`^there are (\d+) godogs$`, thereAreGodogs)
ctx.Then(`^there should be (\d+) remaining$`, thereShouldBeRemaining)
}
```
Expand Down

0 comments on commit b7914af

Please sign in to comment.