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

Feature Request: Should have 'key' WITH VALUE 'value' #1

Closed KSoto closed 8 years ago

KSoto commented 8 years ago

Feature Request.

Can we add functionality to do something like this?:

Then the response should have key “firstName” with value “Katie”

Right now we have this:

Then the response should have key “firstName”

hidroh commented 8 years ago

Yeah that's doable, probably something along the line Then the response should have key "key" with type "type" and value "value", as we need the type in order to cast the value and assert it.

I'll add it when I have free time, haven't been doing Ruby for a while. You're welcome to make a PR as well!