Module: Rspec::Swagger::TestHelpers
- Includes:
- RoutesWithNoRequiredParams, RoutesWithSampleValues
- Defined in:
- lib/rspec/swagger/test_helpers.rb
Instance Method Summary collapse
-
#test_api_correctness ⇒ Object
test_api_correctness().
Methods included from RoutesWithSampleValues
#test_sample_values_for_path_params_on_get_routes
Methods included from RoutesWithNoRequiredParams
#test_200_for_routes_with_no_required_parameters
Instance Method Details
#test_api_correctness ⇒ Object
test_api_correctness()
Tests the correctness of the Swagger-formatted docs stored in the docs/swagger.json and docs/*.json files. You can either run this method for all of the tests, or pick and choose from the tests referenced in this method.
13 14 15 16 17 18 19 |
# File 'lib/rspec/swagger/test_helpers.rb', line 13 def test_api_correctness @loader = SwaggerLoader.new @formatter = Formatter.new test_200_for_routes_with_no_required_parameters test_sample_values_for_path_params_on_get_routes end |