hobby-test 0.0.12 → 0.0.13

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hobby/test.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 345b2ca21a09e7b7bfddc7a9f471ec35d70d7757
4
- data.tar.gz: fb0cc3b3f3ba980270d7bb1e6fca2844c316e757
3
+ metadata.gz: e0987fb56c7a41df53f60ebf11f48ccab82f5c5a
4
+ data.tar.gz: d79433f56127a3c17b761affea9bfebe4c3dfbd9
5
5
  SHA512:
6
- metadata.gz: 5866f177d8e6f4d743ecd9fda1b23617e82a5b6c084bda21afea1d00e6a13c30fb8b7664ffb7b26a741d3cec9e71864930f975b10511fbc622b005fa95e56ab1
7
- data.tar.gz: 3b2d1d8c4d53e61e31f55a488d218e4d3c369da3988e276d21d25ec2b3875ab2fa19d29e13b8e6a4abb760900f7c21c2c426c2829902eea291296832718cb6be
6
+ metadata.gz: 2b1c90ced2da867b297f2d63b34388da4ba43cad860ce6d2774181ed013f700ed60c42b673b3f49e468ad9dfd7fb3089b23c330c25fd395533947989bce0b872
7
+ data.tar.gz: 4cb82c2c41030db6f510342d04d16ec33090ed90c39d2e3a665789fb7eeaff7ab104dd9568b0d3b419053aadd54c91157f06ddc2027cc1dff123b9d60b880531
@@ -188,7 +188,11 @@ module Hobby
188
188
  t.add_row ['Response', @response.to_yaml]
189
189
 
190
190
  unless ok?
191
- t.add_row ['Failed', @asserts.map(&:to_s).join("\n\n")]
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 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobby-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoly Chernow