minitest-colorin 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4be2babd8a4657b6eac9494b001ce702cf2ac577
4
- data.tar.gz: 6e5fa7d415e0a4339c6f8519008c13b9850f9fd9
3
+ metadata.gz: d27414211d1f5f8c3f6e221243d93e12604003ce
4
+ data.tar.gz: ef24dbcceab582cfbb1031d32a07bd32f4e6f437
5
5
  SHA512:
6
- metadata.gz: c59474a5bb16bc83613008bc93d1ee8fe1d495b40844f24fc9aaaaeadb1a17a0d044fca739648f7c4472bf84faa8889c7f12dfcd5dbf06e32883605d41388cdf
7
- data.tar.gz: a70e1c202d2f3e987be2513f2609fcda6ba4b222534a20717959778f0f30ea06749cd7c7e6e26ad8104c6b29720169b6bb87be16959fa5db2b02f7b625f91715
6
+ metadata.gz: 6b1a7336eedf950e7d929d23476cc18a7cf898fe6e592d086ef47b5e5a40f2234115828ac1e5715ac2441590dd9f5d35737c3724f16e76a1ce48158a26d1a0cd
7
+ data.tar.gz: 3f50e987b37d80b68771ede1074fa05cddb3c7ade4b869386a4597b23fb0ea9c0ba792915703924fdb928c50f0e4a8a24720818e9bc8ce54bc5012894952f98c
@@ -6,14 +6,14 @@ module Minitest
6
6
 
7
7
  class TestID
8
8
 
9
- REGEXP = /test_(?<number>\d{4})_(?<name>.+)/
9
+ REGEXP = /test_(?<number>\d{4})_(?<name>.+)?/
10
10
 
11
11
  attr_reader :context, :name, :number
12
12
 
13
13
  def initialize(result)
14
14
  @context = result.class.name.gsub('::', ' > ')
15
15
  match = result.name.match REGEXP
16
- @name = match[:name]
16
+ @name = match[:name] ? match[:name].strip : 'anonymous'
17
17
  @number = match[:number]
18
18
  end
19
19
 
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  class Colorin
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-colorin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-17 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest