Sha256: dd56b1fb47f67f41ef8d10f5fd6d9c8786a40f6f915bd3a7163494250491529f
Contents?: true
Size: 985 Bytes
Versions: 4
Compression:
Stored size: 985 Bytes
Contents
require 'rubygems' require 'rspec' require 'rspec/its' require 'specinfra' require 'serverspec/version' require 'serverspec/matchers' 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 @failure_lines ||= begin 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
serverspec-2.0.0.beta13 | lib/serverspec.rb |
serverspec-2.0.0.beta12 | lib/serverspec.rb |
serverspec-2.0.0.beta11 | lib/serverspec.rb |
serverspec-2.0.0.beta10 | lib/serverspec.rb |