-
Notifications
You must be signed in to change notification settings - Fork 463
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
Document how to set up response validation with Minitest #794
Comments
Hi @TastyPi, I'm looking into this myself now as well. Did you ever find any more resources? I am assuming using Minitest with ApiPie is possible, it's just we lack documentation. |
@logeyG I assume it is possible, but I haven't had the time to look into it. |
Maybe you could be more specific about what exactly you want to test? https://github.com/Apipie/apipie-rails/blob/master/spec/lib/validators/array_validator_spec.rb converting it from rspec to minitest would mean replacing all the |
thanks @mathieujobin for the response I'm interested in doing something like this as referenced in the docs: https://github.com/Apipie/apipie-rails#example-of-the-manual-mechanism Our codebase is very tied to Minitest so I don't think introducing RSpec is viable for us to be able to use this. However based on what you wrote above, I think all that would be required is to convert the following block of code in
|
Yes that's correct. Rspec matcher are just syntaxic sugar... Définition can be taken pretty much as-is... |
There's lots of great examples on how to use this library with RSpec, but I can't find anything for Minitest. Is there a way to set up Minitest to validate Apipie responses? If so, could it be documented somewhere?
The text was updated successfully, but these errors were encountered: