stable 1.5.0 → 1.5.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.
- checksums.yaml +4 -4
- data/lib/stable/spec.rb +16 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04f5edbc2d167df3bc6a5057291e567562f2e07b6885140ec96f3cf87b601032
|
4
|
+
data.tar.gz: 6da1a393e4f367fe1fcb284198f4f0a31e70df9537a8d910c4901e6b863c60f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95eb8713130c459485d8024fb7c5cef3b80d5e973b81534ee1cc43c11d617e573b3dedec3256bc4aafd3510915baf77498d6f83c096a3fb8ce921e9fd733b78b
|
7
|
+
data.tar.gz: bb5156a92198985700e2624d47f9c34f84a2d608c4192a2672550a0111fceac1d12ba71fef6949787bb2cdcaf514581f313535a160f6664a6f2b17a989970fbd
|
data/lib/stable/spec.rb
CHANGED
@@ -54,11 +54,11 @@ module Stable
|
|
54
54
|
|
55
55
|
case status
|
56
56
|
when :passed
|
57
|
-
"#{desc} P #{call}"
|
57
|
+
"#{desc} #{_green('P')} #{call}"
|
58
58
|
when :passed_with_error
|
59
|
-
"#{desc} P (error) #{call}"
|
59
|
+
"#{desc} #{_green('P')} (error) #{call}"
|
60
60
|
when :failed
|
61
|
-
lines = ["#{desc} F #{call}"]
|
61
|
+
lines = ["#{desc} #{_red('F')} #{call}"]
|
62
62
|
if actual_error
|
63
63
|
if error
|
64
64
|
lines << " Expected error: #{error['class']}"
|
@@ -78,7 +78,7 @@ module Stable
|
|
78
78
|
end
|
79
79
|
lines.join("\n")
|
80
80
|
else
|
81
|
-
"#{desc} ? #{call}"
|
81
|
+
"#{desc} #{_yellow('?')} #{call}"
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
@@ -107,5 +107,17 @@ module Stable
|
|
107
107
|
uuid: data['uuid']
|
108
108
|
)
|
109
109
|
end
|
110
|
+
|
111
|
+
def _green(text)
|
112
|
+
"\e[32m#{text}\e[0m"
|
113
|
+
end
|
114
|
+
|
115
|
+
def _red(text)
|
116
|
+
"\e[31m#{text}\e[0m"
|
117
|
+
end
|
118
|
+
|
119
|
+
def _yellow(text)
|
120
|
+
"\e[33m#{text}\e[0m"
|
121
|
+
end
|
110
122
|
end
|
111
123
|
end
|