Sha256: c8626ae29f8a5e646af2c6f080f8fcebcefc64970dac7a15075856cc4adc3d83
Contents?: true
Size: 1.09 KB
Versions: 5
Compression:
Stored size: 1.09 KB
Contents
require 'rubygems' require 'specinfra' require 'rspec' require 'rspec/its' require 'serverspec/version' require 'serverspec/matcher' require 'serverspec/helper' require 'serverspec/setup' require 'serverspec/subject' require 'serverspec/commands/base' require 'rspec/core/formatters/base_formatter' module RSpec::Core::Notifications class FailedExampleNotification < ExampleNotification def failure_lines host = ENV['TARGET_HOST'] || Specinfra.configuration.host @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.message.to_s.split("\n").each do |line| lines << " #{line}" if exception.message end lines << " #{example.metadata[:command]}" lines << " #{example.metadata[:stdout]}" if example.metadata[:stdout] lines << " #{example.metadata[:stderr]}" if example.metadata[:stderr] lines end end end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
serverspec-clc-2.1.0 | lib/serverspec.rb |
serverspec-2.1.0 | lib/serverspec.rb |
serverspec-2.0.1 | lib/serverspec.rb |
serverspec-2.0.0 | lib/serverspec.rb |
serverspec-2.0.0.beta21 | lib/serverspec.rb |