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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tdd_heart.rb +5 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 642280bb80419a36262ec63273930a1dd094acf9
4
- data.tar.gz: 74ab19d90eb3be1998b98e95dd519c967aa78ccf
3
+ metadata.gz: dd4c2d16314d557890443d5b47ffa72bd59163cb
4
+ data.tar.gz: 0a6b3523f32f31996484cd23e806769dba16184b
5
5
  SHA512:
6
- metadata.gz: 1afbbcdb5208f24d371c8ed05056f926c92749f44185878f2355c8f055b6bd215dca8a36a30ebe9aa57e72ac14c8c1f2a5838fcfc8db89382e0c33790e51e043
7
- data.tar.gz: e94c2ae72e7928cbfcbdedbb650669e023c33352065422fc7468c67319599d64b15caf59e90a4b1ec271c5c42ba11c31d2e890ceb734f5240680ff1b68ebefdd
6
+ metadata.gz: 48cdc1e22a79f9bce0fe0e68fda8f821c952e76b2a92d937abf74a0b38e332daed855ff385594d2fae2403a9af674af74bbd637bbca5c24618978123344ee28e
7
+ data.tar.gz: bf3efd4e417fdab8eac9102a2fc1d871d4dbd6ac5ba0000de93c687e56a3a6f05eeeba605f5e79145d36b9e3388b31b0e35c048d88a8b82fbca97aec6d81a880
@@ -46,13 +46,11 @@ class HeartInspector
46
46
  end
47
47
 
48
48
  def result_color
49
- success? ? 'green' : 'red'
50
- end
51
-
52
- def success?
53
- return unless result
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdd_heart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mason