tdd_heart 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tdd_heart.rb +5 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd4c2d16314d557890443d5b47ffa72bd59163cb
|
4
|
+
data.tar.gz: 0a6b3523f32f31996484cd23e806769dba16184b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48cdc1e22a79f9bce0fe0e68fda8f821c952e76b2a92d937abf74a0b38e332daed855ff385594d2fae2403a9af674af74bbd637bbca5c24618978123344ee28e
|
7
|
+
data.tar.gz: bf3efd4e417fdab8eac9102a2fc1d871d4dbd6ac5ba0000de93c687e56a3a6f05eeeba605f5e79145d36b9e3388b31b0e35c048d88a8b82fbca97aec6d81a880
|
data/lib/tdd_heart.rb
CHANGED
@@ -46,13 +46,11 @@ class HeartInspector
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def result_color
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
!!(/success/ =~ result)
|
49
|
+
case result
|
50
|
+
when /success/ then 'green'
|
51
|
+
when /fail/ then 'red'
|
52
|
+
when /pending/ then 'yellow'
|
53
|
+
end
|
56
54
|
end
|
57
55
|
|
58
56
|
def output(color)
|