Class: ApiTester::FormatTest

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

Overview

Test layout used by Format module

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:) ⇒ FormatTest

Returns a new instance of FormatTest.



38
39
40
41
42
43
44
45
# File 'lib/api-tester/modules/format.rb', line 38

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