Class: CemAcpt::TestRunner::LogFormatter::GossErrorFormatter
- Inherits:
-
Base
- Object
- Base
- CemAcpt::TestRunner::LogFormatter::GossErrorFormatter
show all
- Defined in:
- lib/cem_acpt/test_runner/log_formatter/goss_error_formatter.rb
Constant Summary
Constants inherited
from Base
Base::INDENT
Instance Attribute Summary
Attributes inherited from Base
#subject
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #inspect, #to_s
Instance Method Details
#host_name(response = nil) ⇒ Object
19
20
21
22
|
# File 'lib/cem_acpt/test_runner/log_formatter/goss_error_formatter.rb', line 19
def host_name(response = nil)
super(response)
"Error: #{log_subject.error.class.name}"
end
|
#results(response = nil) ⇒ Object
14
15
16
17
|
# File 'lib/cem_acpt/test_runner/log_formatter/goss_error_formatter.rb', line 14
def results(response = nil)
super(response)
[log_subject.summary, log_subject.results.join("\n")]
end
|
#summary(subject = nil) ⇒ Object
9
10
11
12
|
# File 'lib/cem_acpt/test_runner/log_formatter/goss_error_formatter.rb', line 9
def summary(subject = nil)
super(subject)
"Error: #{log_subject.summary}"
end
|
#test_name(response = nil) ⇒ Object
24
25
26
27
|
# File 'lib/cem_acpt/test_runner/log_formatter/goss_error_formatter.rb', line 24
def test_name(response = nil)
super(response)
"Error: #{log_subject.error.class.name}"
end
|