Class: Format
Instance Attribute Summary
Attributes inherited from Module
Instance Method Summary collapse
Methods inherited from Module
#after, #before, #call, #order, #set_report
Instance Method Details
#go(definition, report) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/tester/modules/format.rb', line 6 def go definition, report super definition.methods.each do |method| cases = method.request.cases cases.each do |format_case| response = self.call method, definition, format_case test = FormatTest.new response, format_case.payload, definition.bad_request_response, definition.url, method.verb self.report.reports.concat test.check end end report.reports == [] end |