Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug then running the example of an API, a feature version need to bump to latest reported 0.8.1 #262

Closed
denis-trofimov opened this issue Mar 16, 2020 · 0 comments
Labels
🐛 bug Defect / Bug

Comments

@denis-trofimov
Copy link
Contributor

Please answer these questions before submitting a bug report.

What version of godog are you using?

GO111MODULE=on go get github.com/cucumber/godog/cmd/godog
> godog -version
Godog version is: v0.8.1

What version of Go are you using?

> go version
go version go1.13.1 linux/amd64

What did you do?

If possible, provide a recipe for reproducing the error.

git checkout master
denis@x220:/p/godog$ cd _examples/api/
denis@x220:
/p/godog/_examples/api$ godog

What did you expect to see?

2 scenarios (2 passed)

What did you see instead?

Scenario: should get version number # features/version.feature:17
When I send "GET" request to "/version" # api_test.go:22 -> *apiFeature
Then the response code should be 200 # api_test.go:47 -> *apiFeature
And the response should match json: # api_test.go:54 -> *apiFeature
"""
{
"version": "v0.7.14"
}
"""
expected JSON does not match actual, map[version:v0.7.14] vs. map[version:v0.8.1]

--- Failed steps:

Scenario: should get version number # features/version.feature:17
And the response should match json: # features/version.feature:20
Error: expected JSON does not match actual, map[version:v0.7.14] vs. map[version:v0.8.1]

Additional context

Add any other context about the problem here.

@denis-trofimov denis-trofimov added the 🐛 bug Defect / Bug label Mar 16, 2020
lonnblad added a commit that referenced this issue Mar 16, 2020
Fix Bug then running the example of an API, a feature version need to bump to latest reported 0.8.1 #262
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Defect / Bug
Projects
None yet
Development

No branches or pull requests

1 participant