jayzes / cucumber-api-steps

Cucumber steps to easily test REST-based XML and JSON APIs

Repository from Github https://github.comjayzes/cucumber-api-stepsRepository from Github https://github.comjayzes/cucumber-api-steps

No longer compatible wtih json_spec

ashrocket opened this issue · comments

The two gems are often used together, but I found that as of:
9692bb1#diff-4a6e5a18c593cf41a8e1174bfd5afd41

I could no longer use both gems since the 'should have' step creates ambiguous match with json_spec from collective_idea. For now, I'm rolled back to 0.10 of api-steps, but would love to figure out how to use both gems without generating ambiguous match errors.

👍

I'm certainly open to suggestions and/or a pull request on this one. An alternate name to the steps here perhaps?

I ran into the same problem and have a suggestion: does cucumber-api-steps need to have the JSON response matchers at all? Since json_spec has such comprehensive matchers, the two gems should fit well together. OTOH if somebody is testing XML-only APIs they don't need either the JSON matchers or json_spec so it's cleaner for that kind of user also.