minitest-allow 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42269ba2ac0e790cf210d17c0a5f41d74678f17ce9044fee722e15b82ce1053d
4
- data.tar.gz: 94c2be932cd4447b3e3ae70ff5b6c165e8aa653eef39c698e503e73337c4a698
3
+ metadata.gz: 16c4cd0305f4340a7b8a948ddf81ab474389da5c1ee31e5b3a7a928cbdb877c7
4
+ data.tar.gz: 072e6a2a88033153ddeaa5cbd0790fb2eea50f15a0a109ec32f6080b34cacaf8
5
5
  SHA512:
6
- metadata.gz: 4ddf765dcb88e7bccd9c18d4e049eb2c892a3fa6a17ab5e0f6e43bcad322de91b217a0afac0ba55c5c12837f67fc524b43148e9d044969fa8f1879b3b493f165
7
- data.tar.gz: cf20a5b160feaddfa5cd1e0f45cbeb2d617f5e1393dc8a3c635069f43097e80ffeb0ba5cba45a7f9e0124783f153eb778af397466643a102d246234d1bcbddcd
6
+ metadata.gz: 4a99f0cf46cc6831b643fcc8cbfcb6aae763fc4ae2384f829fc83e4fb5f2c0a2deb1082dcbe549c31501c8e62e3bdfd9e6c6545b0338dc316b7435dc73ff9b1d
7
+ data.tar.gz: 3b0e6200c3f493fc9e3800c3b8559f74b37434d810993109bfd6e47685d65b08e3d9448b2572c69de8a6e0db1271cf82f805f1f69b3265651cec6bd1435491cd
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.2.2 / 2022-08-23
2
+
3
+ * 1 bug fix:
4
+
5
+ * Show skipped tests as good if they're listed in allow file.
6
+
1
7
  === 1.2.1 / 2022-07-01
2
8
 
3
9
  * 1 bug fix:
data/allow.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  ---
2
2
  - TestMinitest::TestAllow#test_sanity
3
+ - TestMinitest::TestAllow#test_was_bad_now_skip
3
4
  - !ruby/regexp /This is bad/
@@ -41,7 +41,7 @@ module Minitest
41
41
  end
42
42
 
43
43
  module Allow
44
- VERSION = "1.2.1"
44
+ VERSION = "1.2.2"
45
45
 
46
46
  attr_accessor :allow, :allow_save, :allow_seen
47
47
 
@@ -107,7 +107,9 @@ module Minitest
107
107
  # if hit by regex, then we want to report it as "good" so
108
108
  # the name gets removed from the allow list:
109
109
 
110
- hit[name] = true if by_name && !by_regx
110
+ # the same goes for when the test is listed as bad but is now skipped:
111
+
112
+ hit[name] = true if by_name && !by_regx && !r.skipped?
111
113
 
112
114
  by_name || by_regx
113
115
  }
@@ -12,6 +12,11 @@ class TestMinitest::TestAllow < Minitest::Test
12
12
  skip "nah"
13
13
  end
14
14
 
15
+ def test_was_bad_now_skip
16
+ skip "nah" if ENV["OLD_BAD"]
17
+ flunk "nah"
18
+ end
19
+
15
20
  def test_unknown_bad
16
21
  flunk "bad!"
17
22
  end if ENV["NEW_BAD"]
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-allow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
30
30
  YsuyUzsMz6GQA4khyaMgKNSD
31
31
  -----END CERTIFICATE-----
32
- date: 2022-07-02 00:00:00.000000000 Z
32
+ date: 2022-08-24 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: minitest
metadata.gz.sig CHANGED
Binary file