protest 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protest/utils/summaries.rb +13 -4
- data/lib/protest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10e597f744d4f6c558f2006ef1e5ebc0859c9801
|
4
|
+
data.tar.gz: 2c6113c27762a9bf676cc3e671f44eed29904bc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3a219d2768d139b692dfdbc1c71438cc45b9d81e867ed640004446db6cf721caa36e9c8a9cf29efc031ce552628e6bb8fa130da99adea0b32d22d4eb007f93c
|
7
|
+
data.tar.gz: e9980d5036c557c9263c579afaf3e00e677c27bc5c8092f82e359cbd2fe664b6e77b24422fffa9f3ee71d36765b14883e17673a8b5f9c4fcd65848d737860ff9
|
@@ -70,10 +70,19 @@ module Protest
|
|
70
70
|
|
71
71
|
pad_indexes = failures_and_errors.size.to_s.size
|
72
72
|
failures_and_errors.each_with_index do |error, index|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
73
|
+
if ErroredTest === error
|
74
|
+
colorize_as = :errored
|
75
|
+
error_prefix = "With #{error.error.class.name}:"
|
76
|
+
else
|
77
|
+
colorize_as = :failed
|
78
|
+
error_prefix = "With"
|
79
|
+
end
|
80
|
+
|
81
|
+
lines = []
|
82
|
+
lines << " #{pad(index+1, pad_indexes)}) #{test_type(error)}: `#{error.test_name}' (on line #{error.line} of `#{error.file}')"
|
83
|
+
lines.concat indent("#{error_prefix} `#{error.error_message}'", 6 + pad_indexes)
|
84
|
+
lines.concat indent(error.backtrace, 6 + pad_indexes)
|
85
|
+
lines.each { |line| puts line, colorize_as }
|
77
86
|
puts
|
78
87
|
end
|
79
88
|
end
|
data/lib/protest/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolás Sanguinetti
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Protest is a tiny, simple, and easy-to-extend test framework for ruby.
|
15
15
|
email: flores.matias@gmail.com
|