selective-ruby-minitest 0.1.0 → 0.1.2

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: 21ed49908ca7c9dde0483d731253012e7bcad60e19136e1972f4283fb5616569
4
- data.tar.gz: ac606566b9df73727b87afb88786e6c69263735f57639845139c052586066f69
3
+ metadata.gz: e00ea8147c671869afa4329b2e5bb1bfaec174832ae2352cb4b97a61de55af9b
4
+ data.tar.gz: a4f63aba2657952326b2841e300d24b8b038272bfe98ce2c71d7dd7c537b0d63
5
5
  SHA512:
6
- metadata.gz: 05d25cde4b7fb970d4bca1f7cb464f35402202eac76fb6f47b16a7272337fd9feca28f5cf332529c89674464b407c71a0e93564f14f16e61b8da50e65e7693e6
7
- data.tar.gz: 5e5ff5436b4cdd41c9ba7faee1ba558eacdcef2df6e0d33b448e23bbad73dc8dee56d7966e64dd0c0b7f8279a40a8ee5d65bd63b7d477aeb6663313e23ce0289
6
+ metadata.gz: c13e9e68246461b94978341a545a000609ce507d2a94b53cb9c5d72a2550d04ba13bf1327dfa6e3cb0171cd272db72a2169d4f764c625268441adf9fe712b5b1
7
+ data.tar.gz: 8f1ba321cf5508dd9405c8daafafab113afb684ae7809fbf1cba1ff7c8367b6fa893d6bf7098f79091bfac9f254363ddf26119c258fb1a2aa64b6fd382b27adc
@@ -49,15 +49,17 @@ module Selective
49
49
  end
50
50
 
51
51
  def remove_test_case_result(test_case_id)
52
- file_path, method_name = test_case_id.split(":")
52
+ test = test_map[test_case_id]
53
+ return unless test
53
54
 
54
55
  result = summary_reporter.results.detect do |r|
55
- r.source_location.first.gsub(root_path, "") == file_path &&
56
- r.name == method_name
56
+ r.source_location.first.gsub(root_path, "") == test[:file_path] &&
57
+ r.name == test[:method_name]
57
58
  end
58
59
 
59
- result.failures = []
60
+ return unless result
60
61
 
62
+ result.failures = []
61
63
  summary_reporter.results.delete(result)
62
64
  end
63
65
 
@@ -66,7 +68,7 @@ module Selective
66
68
  end
67
69
 
68
70
  def exit_status
69
- failures.length.zero? ? 0 : 1
71
+ failures.reject(&:skipped?).length.zero? ? 0 : 1
70
72
  end
71
73
 
72
74
  def finish
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module Minitest
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.2"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selective-ruby-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Wood
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-04-30 00:00:00.000000000 Z
12
+ date: 2026-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk