Module: Apivore::RspecHelpers
- Defined in:
- lib/apivore/rspec_helpers.rb
Instance Method Summary collapse
- #conform_to(custom_schema) ⇒ Object
- #validate(method, path, response_code, params = {}) ⇒ Object
- #validate_all_paths ⇒ Object
Instance Method Details
#conform_to(custom_schema) ⇒ Object
11 12 13 |
# File 'lib/apivore/rspec_helpers.rb', line 11 def conform_to(custom_schema) CustomSchemaValidator.new(custom_schema) end |
#validate(method, path, response_code, params = {}) ⇒ Object
7 8 9 |
# File 'lib/apivore/rspec_helpers.rb', line 7 def validate(method, path, response_code, params = {}) Validator.new(method, path, response_code, params) end |
#validate_all_paths ⇒ Object
15 16 17 |
# File 'lib/apivore/rspec_helpers.rb', line 15 def validate_all_paths AllRoutesTestedValidator.new end |