Sha256: 604e16692be3cfa071951da8220c38ca20787474b0f3c87291a5061a20d6e7f0
Contents?: true
Size: 833 Bytes
Versions: 2
Compression:
Stored size: 833 Bytes
Contents
require 'tester/reporter/status_code_report' require 'tester/modules/module' require 'tester/method_case_test' class GoodCase < Module def go definition, report super definition.methods.each do |method| default_case = BoundaryCase.new definition.url, method.request.default_payload, method.request.default_headers response = self.call method, definition, default_case test = GoodCaseTest.new response, definition.url, method self.report.reports.concat test.check end self.report.reports == [] end def order 1 end end class GoodCaseTest < MethodCaseTest def initialize response, url, method super response, method.request.default_payload, method.expected_response, url, method.verb, "GoodCaseModule" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.0.5 | lib/tester/modules/good_case.rb |
api-tester-0.0.4 | lib/tester/modules/good_case.rb |