protest 0.5.4 → 0.5.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b0363b7887f87c45bc40276d7caabcbafed7c6a
4
- data.tar.gz: 6ba853d2afd0e235e5e959a926c583a8d2d7815e
3
+ metadata.gz: 10e597f744d4f6c558f2006ef1e5ebc0859c9801
4
+ data.tar.gz: 2c6113c27762a9bf676cc3e671f44eed29904bc4
5
5
  SHA512:
6
- metadata.gz: 8ebd8b63a5c053955b07d8dacb41a408463d4d36634d15515cd021309b81dea29eb3354dffd0ee4eb9b510e96498189f017fc544c4282341e3240de92a9f4328
7
- data.tar.gz: a071b3dfd872066ff67d765416148a84a14ae3111550b5898d03333f83c44e9f5898c0ce32097b0b4a4a358fbf92311f7db94bb23cf0edfd71271ae9cc6727d0
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
- colorize_as = ErroredTest === error ? :errored : :failed
74
- puts " #{pad(index+1, pad_indexes)}) #{test_type(error)}: `#{error.test_name}' (on line #{error.line} of `#{error.file}')", colorize_as
75
- puts indent("With `#{error.error_message}'", 6 + pad_indexes), colorize_as
76
- indent(error.backtrace, 6 + pad_indexes).each {|backtrace| puts backtrace, colorize_as }
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
@@ -1,3 +1,3 @@
1
1
  module Protest
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
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
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: 2015-04-23 00:00:00.000000000 Z
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