module Rspec::Swagger::TestHelpers
Public Instance Methods
test_api_correctness()
click to toggle source
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.
# 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