omnitest-skeptic 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc9c6cc786ab7e5b561aee12041ea84eb92e0975
|
4
|
+
data.tar.gz: c326c601423e9ea855ce3e9ad5050e6e09ddee3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4db5282d3ef24132ba0638cb4e513179478fd11f2f9cbb398d9a182410f203427f6630f10a07debd3b5f3d6c44cb6be3997913e67e3a2fd7531f81dd09cc697b
|
7
|
+
data.tar.gz: e7bc4fc761ac4074ac9de0a625ba2ac091c0bd920b53046a23be686e120615144bc0b48d46e87dc37204fb3d9bc6ddf6dbe079d8663f3842406c41afa8d5e231
|
@@ -130,14 +130,14 @@ module Omnitest
|
|
130
130
|
def verify!
|
131
131
|
validators.each do |validator|
|
132
132
|
validation = validator.validate(self)
|
133
|
-
status = case validation.
|
133
|
+
status = case validation.status
|
134
134
|
when :passed
|
135
135
|
Core::Color.colorize("\u2713 Passed", :green)
|
136
136
|
when :failed
|
137
137
|
Core::Color.colorize('x Failed', :red)
|
138
138
|
Omnitest.handle_validation_failure(validation.error)
|
139
139
|
else
|
140
|
-
Core::Color.colorize(validation.
|
140
|
+
Core::Color.colorize(validation.status, :yellow)
|
141
141
|
end
|
142
142
|
info format('%-50s %s', validator.description, status)
|
143
143
|
end
|
@@ -31,7 +31,7 @@ module Omnitest
|
|
31
31
|
when 'exec_failed' then 'Execution Failed'
|
32
32
|
when 'verify', 'verify_failed'
|
33
33
|
validator_count = validators.count
|
34
|
-
validation_count = validations.values.select { |v| v.
|
34
|
+
validation_count = validations.values.select { |v| v.status == :passed }.count
|
35
35
|
if validator_count == validation_count
|
36
36
|
"Fully Verified (#{validation_count} of #{validator_count})"
|
37
37
|
else
|