minitest-utils 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2dd3332349124b344a5c54b49a5a68b625a5866438350ecb8753d196748bf979
4
- data.tar.gz: 99785612b3df911aa58f0975740001532cb11be661266a4d90b8d936a9243c4e
3
+ metadata.gz: ad42d4b5af4fedb67bd32f1ef6c501c7c1668b2738b06c556a24c66fc739bf29
4
+ data.tar.gz: 65415517cbda393258ea30112037d627eb322c0cd5ed641e0a80d76f35e8d4f9
5
5
  SHA512:
6
- metadata.gz: a22c26e74ffca9d640b87610400d1d5898cec8aa00d969ce7ac6f97c75562a4f5e189f3a74faafc12fe1214b7115e81f160190e3480a4faed2e04128f1e18345
7
- data.tar.gz: 70c5322c8d76806706e0721360785d983ffb5697e09bafcd97fa4e89557dee62cfc5e99888a92d9ee58db5ba4800e02ebfd92b57c5f7f68e4ab4dc678ac73001
6
+ metadata.gz: 53fc67af42f5149f0c79d9c80d9427ce0779ac4f4f3bd456f030e47b2cc3f812c70c248ae5d9352dbb41e7d3aa99ebda5135b2593b078c4b308e9964df2e2984
7
+ data.tar.gz: 96cc057b759be11e2b84e732b277d3fc8e1a965ee4cbb7d35898938bbdd44da74a78794dadb960d7104508c7968a3dfbce99a62fc39a8c01860d495bbff2ed96
@@ -38,13 +38,15 @@ module Minitest
38
38
  source_location.lineno
39
39
  ]
40
40
 
41
- klass = self.name
41
+ klass = name
42
42
  test_name = test_method_name(description)
43
43
  defined = method_defined?(test_name)
44
+ id = "#{klass}##{test_name}"
44
45
 
45
- Test.tests["#{klass}##{test_name}"] = {
46
+ Test.tests[id] = {
47
+ id:,
46
48
  description:,
47
- name: name,
49
+ name: test_name,
48
50
  source_location:,
49
51
  benchmark: nil
50
52
  }
@@ -93,7 +93,7 @@ module Minitest
93
93
  prefix = "#{index + 1}) "
94
94
  padding = " " * prefix.size
95
95
 
96
- io.puts color("#{prefix}#{info[:name]} (#{duration})", :red)
96
+ io.puts color("#{prefix}#{info[:description]} (#{duration})", :red)
97
97
  io.puts color("#{padding}#{location}", :gray)
98
98
  io.puts
99
99
  end
@@ -204,7 +204,7 @@ module Minitest
204
204
  Minitest.backtrace_filter
205
205
  .filter(backtrace)
206
206
  .reject {|line| Reporter.filters.any? { line.match?(_1) } }
207
- .reject {|line| !line.start_with?(Dir.pwd) }
207
+ .select {|line| line.start_with?(Dir.pwd) }
208
208
  end
209
209
 
210
210
  private def result_name(name)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minitest
4
4
  module Utils
5
- VERSION = "0.5.6"
5
+ VERSION = "0.5.7"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira