Class: CemAcpt::TestRunner::LogFormatter::ErrorFormatter
- Inherits:
-
Object
- Object
- CemAcpt::TestRunner::LogFormatter::ErrorFormatter
- Defined in:
- lib/cem_acpt/test_runner/log_formatter/error_formatter.rb
Instance Method Summary collapse
- #host_name(response) ⇒ Object
- #inspect ⇒ Object
- #results(response) ⇒ Object
- #summary(response) ⇒ Object
- #test_name(response) ⇒ Object
- #to_s ⇒ Object
Instance Method Details
#host_name(response) ⇒ Object
23 24 25 |
# File 'lib/cem_acpt/test_runner/log_formatter/error_formatter.rb', line 23 def host_name(response) "Error: #{response.error.class.name}" end |
#inspect ⇒ Object
7 8 9 |
# File 'lib/cem_acpt/test_runner/log_formatter/error_formatter.rb', line 7 def inspect to_s end |
#results(response) ⇒ Object
19 20 21 |
# File 'lib/cem_acpt/test_runner/log_formatter/error_formatter.rb', line 19 def results(response) [response.summary, response.results.join("\n")] end |
#summary(response) ⇒ Object
15 16 17 |
# File 'lib/cem_acpt/test_runner/log_formatter/error_formatter.rb', line 15 def summary(response) "Error: #{response.summary}" end |
#test_name(response) ⇒ Object
27 28 29 |
# File 'lib/cem_acpt/test_runner/log_formatter/error_formatter.rb', line 27 def test_name(response) "Error: #{response.error.class.name}" end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/cem_acpt/test_runner/log_formatter/error_formatter.rb', line 11 def to_s "#<#{self.class.name}:0x#{object_id.to_s(16)}>" end |