class Webspicy::Tester::Result::ErrorSchemaMet

Public Instance Methods

behavior() click to toggle source
# File lib/webspicy/tester/result/error_schema_met.rb, line 6
def behavior
  "Error data meets the expected error schema"
end
call() click to toggle source
# File lib/webspicy/tester/result/error_schema_met.rb, line 14
def call
  return unless invocation.is_structured_output?
  output = invocation.loaded_body
  service.error_schema.dress(output)
rescue Finitio::TypeError => ex
  _! "Invalid error: #{ex.message}"
end
must?() click to toggle source
# File lib/webspicy/tester/result/error_schema_met.rb, line 10
def must?
  !test_case.is_expected_status?(204)
end