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 +4 -4
- data/lib/minitest/utils/extension.rb +5 -3
- data/lib/minitest/utils/reporter.rb +2 -2
- data/lib/minitest/utils/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ad42d4b5af4fedb67bd32f1ef6c501c7c1668b2738b06c556a24c66fc739bf29
         | 
| 4 | 
            +
              data.tar.gz: 65415517cbda393258ea30112037d627eb322c0cd5ed641e0a80d76f35e8d4f9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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 =  | 
| 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[ | 
| 46 | 
            +
                  Test.tests[id] = {
         | 
| 47 | 
            +
                    id:,
         | 
| 46 48 | 
             
                    description:,
         | 
| 47 | 
            -
                    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[: | 
| 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 | 
            -
                            . | 
| 207 | 
            +
                            .select {|line| line.start_with?(Dir.pwd) }
         | 
| 208 208 | 
             
                  end
         | 
| 209 209 |  | 
| 210 210 | 
             
                  private def result_name(name)
         |