Class: RSpec::Core::Notifications::FailedExampleNotification
- Inherits:
-
Object
- Object
- RSpec::Core::Notifications::FailedExampleNotification
- Defined in:
- lib/cloudstack_spec.rb
Instance Method Summary collapse
Instance Method Details
#failure_lines ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/cloudstack_spec.rb', line 39 def failure_lines @failure_lines ||= begin lines = [] # lines << "On host `#{host}'" if host lines << "Failure/Error: #{read_failed_line.strip}" # lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/ exception..to_s.split("\n").each do |line| lines << " #{line}" if exception. end # lines << " #{example.metadata[:command]}" # lines << " #{example.metadata[:stdout]}" if example.metadata[:stdout] # lines << " #{example.metadata[:stderr]}" if example.metadata[:stderr] # lines end end |