Class: Module
- Inherits:
-
Object
show all
- Defined in:
- lib/tester/modules/module.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#report ⇒ Object
Returns the value of attribute report.
5
6
7
|
# File 'lib/tester/modules/module.rb', line 5
def report
@report
end
|
Instance Method Details
#after(definition) ⇒ Object
23
24
25
|
# File 'lib/tester/modules/module.rb', line 23
def after definition
definition.test_helper.after
end
|
#before(definition) ⇒ Object
19
20
21
|
# File 'lib/tester/modules/module.rb', line 19
def before definition
definition.test_helper.before
end
|
#call(method, definition, format_case) ⇒ Object
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/tester/modules/module.rb', line 27
def call method, definition, format_case
self.before definition
begin
response = method.call definition.url, format_case.payload, format_case.
rescue RestClient::ExceptionWithResponse => e
response = e.response
end
self.after definition
response
end
|
#go(definition, report) ⇒ Object
11
12
13
|
# File 'lib/tester/modules/module.rb', line 11
def go definition, report
set_report report
end
|
#order ⇒ Object
15
16
17
|
# File 'lib/tester/modules/module.rb', line 15
def order
5
end
|
#set_report(report) ⇒ Object
7
8
9
|
# File 'lib/tester/modules/module.rb', line 7
def set_report report
self.report = report
end
|