Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Comment thread
otrava7 marked this conversation as resolved.
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