Fixed failing builder tests due to the v0.9.0 change
Этот коммит содержится в:
родитель
93abaf53bc
коммит
e6e66731b5
1 изменённых файлов: 5 добавлений и 2 удалений
|
@ -28,6 +28,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/cucumber/godog"
|
"github.com/cucumber/godog"
|
||||||
|
messages "github.com/cucumber/messages-go/v10"
|
||||||
)
|
)
|
||||||
|
|
||||||
func thereAreGodogs(available int) error {
|
func thereAreGodogs(available int) error {
|
||||||
|
@ -55,7 +56,7 @@ func FeatureContext(s *godog.Suite) {
|
||||||
s.Step("^I eat (\\d+)$", iEat)
|
s.Step("^I eat (\\d+)$", iEat)
|
||||||
s.Step("^there should be (\\d+) remaining$", thereShouldBeRemaining)
|
s.Step("^there should be (\\d+) remaining$", thereShouldBeRemaining)
|
||||||
|
|
||||||
s.BeforeScenario(func(interface{}) {
|
s.BeforeScenario(func(*messages.Pickle) {
|
||||||
Godogs = 0 // clean the state before every scenario
|
Godogs = 0 // clean the state before every scenario
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -67,6 +68,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/cucumber/godog"
|
"github.com/cucumber/godog"
|
||||||
|
messages "github.com/cucumber/messages-go/v10"
|
||||||
|
|
||||||
"godogs"
|
"godogs"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -95,7 +98,7 @@ func FeatureContext(s *godog.Suite) {
|
||||||
s.Step("^I eat (\\d+)$", iEat)
|
s.Step("^I eat (\\d+)$", iEat)
|
||||||
s.Step("^there should be (\\d+) remaining$", thereShouldBeRemaining)
|
s.Step("^there should be (\\d+) remaining$", thereShouldBeRemaining)
|
||||||
|
|
||||||
s.BeforeScenario(func(interface{}) {
|
s.BeforeScenario(func(*messages.Pickle) {
|
||||||
godogs.Godogs = 0 // clean the state before every scenario
|
godogs.Godogs = 0 // clean the state before every scenario
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче