Class: GoodCase

Inherits:
Module show all
Defined in:
lib/tester/modules/good_case.rb

Instance Attribute Summary

Attributes inherited from Module

#report, #test_helper

Instance Method Summary collapse

Methods inherited from Module

#after, #before, #call, #initialize, #set_report

Constructor Details

This class inherits a constructor from Module

Instance Method Details

#go(definition, report) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/tester/modules/good_case.rb', line 6

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.url, default_case
        test = GoodCaseTest.new response, definition.url, method
        self.report.reports.concat test.check
    end

    self.report.reports == []
end

#orderObject



19
20
21
# File 'lib/tester/modules/good_case.rb', line 19

def order
    1
end