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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hobby/test.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cc6e7a177badf3803c3d89b5bbc6c12b40f1f7f
4
- data.tar.gz: a1e4c4676fd9daeaa1f016f6640ff50cc6db71ef
3
+ metadata.gz: d8458ed1ffd8443b82a6fc382a497b96feb14b42
4
+ data.tar.gz: 33653124f8590fe390a2108bfd41120e9f155030
5
5
  SHA512:
6
- metadata.gz: 81febbbbaf63719a86fcfc3347a47b7e5687e019e266be2cbab2e2df4d89468fcda6cdd95ed8f72c5257f34b5d39712b3e3d4c9e01299783e8abd8f40086a37b
7
- data.tar.gz: f9c0158307d36f61aade0cd9189888f8a529de93d6213e65518cd434d8f06e6d4cd982f5fcf96036f62899dd84a3fc6bd2b75027563d030127badbfda7f1ae60
6
+ metadata.gz: 2f05c3da947e890629949f511e72b75ce3f0af7340ec6a3a0a481c42e6cdcea1952433bd143e6fbfe61d81d1f134addf139243825861309a8c642bae7401a796
7
+ data.tar.gz: 892acc511a23567fc8c2f30d08921d2ac87060b1748c05e518e89c717787b3076c4db493ba96e2047cdd1c12e5367c57abfa8efb6e3abe13b03b90410a86a6aa
@@ -170,15 +170,15 @@ module Hobby
170
170
  @asserts.all? &:ok?
171
171
  end
172
172
 
173
- def to_s exchange_report
173
+ def to_s
174
174
  Terminal::Table.new do |t|
175
- status = exchange_report.ok? ? Rainbow('passed').green : Rainbow('failed').red
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 exchange_report.ok?
181
+ unless ok?
182
182
  t.add_row ['Failed', @asserts.map(&:to_s).join("\n\n")]
183
183
  end
184
184
 
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoly Chernow