You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test validation helpers are a great binding between implementation and outcome. This closes the loop between DSL code in controllers and the actual API behaviour.
By asserting the behaviour against the docs, the docs remain valid, through time and changes; and are therefore easier to maintain; and drift is prevented.
A refactor to have the Test helpers injected into the controllers moved separate to the test helpers used by the invoking test framework would add support for any type of testing framework.
Intention
I can support making this change to make minitest work with this through the proposed refactor.
The text was updated successfully, but these errors were encountered:
Background
The test validation helpers are a great binding between implementation and outcome. This closes the loop between DSL code in controllers and the actual API behaviour.
By asserting the behaviour against the docs, the docs remain valid, through time and changes; and are therefore easier to maintain; and drift is prevented.
See response validation here
Issue
They lack MiniTest Support.
Changes
The Rspec specific code is only this portion of the lib
apipie-rails/lib/apipie/rspec/response_validation_helper.rb
Lines 130 to 157 in 4be3741
A refactor to have the Test helpers injected into the controllers moved separate to the test helpers used by the invoking test framework would add support for any type of testing framework.
Intention
I can support making this change to make minitest work with this through the proposed refactor.
The text was updated successfully, but these errors were encountered: