Class: ApiTester::VerbClass
- Inherits:
-
MethodCaseTest
- Object
- MethodCaseTest
- ApiTester::VerbClass
- Defined in:
- lib/api-tester/modules/extra_verbs.rb
Overview
Test template used for module
Instance Attribute Summary
Attributes inherited from MethodCaseTest
#expected_response, #module_name, #payload, #reports, #response, #url
Instance Method Summary collapse
-
#initialize(response:, payload:, expected_response:, url:, verb:) ⇒ VerbClass
constructor
A new instance of VerbClass.
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:) ⇒ VerbClass
Returns a new instance of VerbClass.
50 51 52 53 54 55 56 57 |
# File 'lib/api-tester/modules/extra_verbs.rb', line 50 def initialize(response:, payload:, expected_response:, url:, verb:) super response: response, payload: payload, expected_response: expected_response, url: url, verb: verb, module_name: 'VerbModule' end |