cucumber-api-steps
cucumber-api-steps copied to clipboard
No longer compatible wtih json_spec
The two gems are often used together, but I found that as of: https://github.com/jayzes/cucumber-api-steps/commit/9692bb1b8e5ae152cee023a8e4495797bee87604#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.
:+1:
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.