minitest-rerun 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/minitest/rerun.rb +8 -0
- data/lib/minitest/rerun/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 640835dc89bfed2d7455d01fe7b75b4f571666da
|
4
|
+
data.tar.gz: d77597849c5943852b6993728262e9bc918af3b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eaa593aa0f2ba053cceb9536706f129871b444529b6dacb0f1b4f8fd4f14ab4738fe21d071dd1e84cad58a1ef8f647c0525385f1f50db9af6faf667abdbce24
|
7
|
+
data.tar.gz: 34e5fa68c631fb299174d99d7f7e801e2ad136c88d19d4fb6e1c67af10c148a21f6f761e509265607645b5da86f0a347c8943984b8d8b15874c220fe0aa17988
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/minitest/rerun.rb
CHANGED
@@ -14,6 +14,14 @@ module Minitest::Rerun
|
|
14
14
|
else
|
15
15
|
info.sub(/:$/, "")
|
16
16
|
end
|
17
|
+
|
18
|
+
# in minitest 5 we know file/line even for errors
|
19
|
+
if !location && msg.respond_to?(:name)
|
20
|
+
method = msg.method(msg.name)
|
21
|
+
file, line = method.source_location
|
22
|
+
location = "#{file}:#{line}"
|
23
|
+
end
|
24
|
+
|
17
25
|
file = test_file(file)
|
18
26
|
line = colorize(:red, "ruby #{file || "unknown"} -n '#{name.gsub(%{'}, %{'"'"'})}' ")
|
19
27
|
line << colorize(:cyan, "# #{relativize(location)}") if location
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|