hidroh / cucumber-api

API validator in BBD style with Cucumber
https://rubygems.org/gems/cucumber-api
Apache License 2.0
52 stars 56 forks source link

Raise error when schema is expected but missing #32

Closed davidlamys closed 3 years ago

davidlamys commented 3 years ago

Currently, verifying json response against a missing schema is not considered a failure and an error message is printed into the console.

This PR will raise an error and handle the failure similar to when attempting to set request body from a missing file. https://github.com/hidroh/cucumber-api/blob/8d101d166b5eb0dd2f9f6eee5019e062bc3d4f11/lib/cucumber-api/steps.rb#L89

hidroh commented 3 years ago

Thanks!