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 +4 -4
- data/lib/minitest/colorin.rb +2 -2
- data/lib/minitest/colorin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d27414211d1f5f8c3f6e221243d93e12604003ce
|
4
|
+
data.tar.gz: ef24dbcceab582cfbb1031d32a07bd32f4e6f437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b1a7336eedf950e7d929d23476cc18a7cf898fe6e592d086ef47b5e5a40f2234115828ac1e5715ac2441590dd9f5d35737c3724f16e76a1ce48158a26d1a0cd
|
7
|
+
data.tar.gz: 3f50e987b37d80b68771ede1074fa05cddb3c7ade4b869386a4597b23fb0ea9c0ba792915703924fdb928c50f0e4a8a24720818e9bc8ce54bc5012894952f98c
|
data/lib/minitest/colorin.rb
CHANGED
@@ -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
|
|
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.
|
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-
|
11
|
+
date: 2016-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|