mcmire-protest 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/protest.rb +1 -1
- data/lib/protest/utils/summaries.rb +5 -3
- data/mcmire-protest.gemspec +1 -1
- metadata +1 -1
data/lib/protest.rb
CHANGED
@@ -71,10 +71,12 @@ module Protest
|
|
71
71
|
pad_indexes = failures_and_errors.size.to_s.size
|
72
72
|
failures_and_errors.each_with_index do |error, index|
|
73
73
|
colorize_as = ErroredTest === error ? :errored : :failed
|
74
|
-
puts " #{pad(index+1, pad_indexes)}) #{test_type(error)}
|
74
|
+
puts " #{pad(index+1, pad_indexes)}) #{test_type(error)} in `#{error.test.class.description} #{error.test_name}' (on line #{error.line} of `#{error.file}')", colorize_as
|
75
75
|
# If error message has line breaks, indent the message
|
76
76
|
prefix = "with"
|
77
|
-
|
77
|
+
unless error.error.is_a?(Protest::AssertionFailed) || error.error.is_a?(::Test::Unit::AssertionFailedError)
|
78
|
+
prefix << " #{error.error.class}"
|
79
|
+
end
|
78
80
|
if error.error_message =~ /\n/
|
79
81
|
puts indent("#{prefix}: <<", 6 + pad_indexes), colorize_as
|
80
82
|
puts indent(error.error_message, 6 + pad_indexes + 2), colorize_as
|
@@ -82,7 +84,7 @@ module Protest
|
|
82
84
|
else
|
83
85
|
puts indent("#{prefix} `#{error.error_message}'", 6 + pad_indexes), colorize_as
|
84
86
|
end
|
85
|
-
indent(error.backtrace, 6 + pad_indexes).each {|backtrace| puts backtrace, colorize_as }
|
87
|
+
indent(error.backtrace[1..-1], 6 + pad_indexes).each {|backtrace| puts backtrace, colorize_as }
|
86
88
|
puts
|
87
89
|
end
|
88
90
|
end
|
data/mcmire-protest.gemspec
CHANGED