hobby-test 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hobby/test.rb +5 -1
- 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: e0987fb56c7a41df53f60ebf11f48ccab82f5c5a
|
4
|
+
data.tar.gz: d79433f56127a3c17b761affea9bfebe4c3dfbd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b1c90ced2da867b297f2d63b34388da4ba43cad860ce6d2774181ed013f700ed60c42b673b3f49e468ad9dfd7fb3089b23c330c25fd395533947989bce0b872
|
7
|
+
data.tar.gz: 4cb82c2c41030db6f510342d04d16ec33090ed90c39d2e3a665789fb7eeaff7ab104dd9568b0d3b419053aadd54c91157f06ddc2027cc1dff123b9d60b880531
|
data/lib/hobby/test.rb
CHANGED
@@ -188,7 +188,11 @@ module Hobby
|
|
188
188
|
t.add_row ['Response', @response.to_yaml]
|
189
189
|
|
190
190
|
unless ok?
|
191
|
-
|
191
|
+
asserts = @asserts.map do |assert|
|
192
|
+
string = assert.to_s
|
193
|
+
assert.ok ? Rainbow(string).green : Rainbow(string).red
|
194
|
+
end
|
195
|
+
t.add_row ['Failed', asserts.join("\n\n")]
|
192
196
|
end
|
193
197
|
|
194
198
|
t.style = { all_separators: true }
|