Class: ApiTester::MissingResourceTest

Inherits:
MethodCaseTest show all
Defined in:
lib/api-tester/modules/missing_resource.rb

Overview

Test layout for Missing Resource

Instance Attribute Summary

Attributes inherited from MethodCaseTest

#expected_response, #module_name, #payload, #reports, #response, #url

Instance Method Summary collapse

Methods inherited from MethodCaseTest

#check, #check_response_code, #extra_field_report, #increment_fields, #json_parse, #missing_field_report, #response_code_report

Constructor Details

#initialize(response, payload, expected_response, url, verb) ⇒ MissingResourceTest

Returns a new instance of MissingResourceTest.



55
56
57
58
59
60
61
62
# File 'lib/api-tester/modules/missing_resource.rb', line 55

def initialize(response, payload, expected_response, url, verb)
  super response: response,
        payload: payload,
        expected_response: expected_response,
        url: url,
        verb: verb,
        module_name: 'Missing Resource'
end