Class: CemAcpt::TestRunner::LogFormatter::ErrorFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/cem_acpt/test_runner/log_formatter/error_formatter.rb

Instance Method Summary collapse

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

#inspectObject



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_sObject



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