Module: Apivore::RspecHelpers

Defined in:
lib/apivore/rspec_helpers.rb

Instance Method Summary collapse

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_pathsObject



15
16
17
# File 'lib/apivore/rspec_helpers.rb', line 15

def validate_all_paths
  AllRoutesTestedValidator.new
end