hobby-test 0.0.9 → 0.0.10
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 +3 -3
- 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: d8458ed1ffd8443b82a6fc382a497b96feb14b42
|
4
|
+
data.tar.gz: 33653124f8590fe390a2108bfd41120e9f155030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f05c3da947e890629949f511e72b75ce3f0af7340ec6a3a0a481c42e6cdcea1952433bd143e6fbfe61d81d1f134addf139243825861309a8c642bae7401a796
|
7
|
+
data.tar.gz: 892acc511a23567fc8c2f30d08921d2ac87060b1748c05e518e89c717787b3076c4db493ba96e2047cdd1c12e5367c57abfa8efb6e3abe13b03b90410a86a6aa
|
data/lib/hobby/test.rb
CHANGED
@@ -170,15 +170,15 @@ module Hobby
|
|
170
170
|
@asserts.all? &:ok?
|
171
171
|
end
|
172
172
|
|
173
|
-
def to_s
|
173
|
+
def to_s
|
174
174
|
Terminal::Table.new do |t|
|
175
|
-
status =
|
175
|
+
status = ok? ? Rainbow('passed').green : Rainbow('failed').red
|
176
176
|
t.add_row ['Status', status]
|
177
177
|
|
178
178
|
t.add_row ['Request', @request.to_yaml]
|
179
179
|
t.add_row ['Response', @response.to_yaml]
|
180
180
|
|
181
|
-
unless
|
181
|
+
unless ok?
|
182
182
|
t.add_row ['Failed', @asserts.map(&:to_s).join("\n\n")]
|
183
183
|
end
|
184
184
|
|