minitest 5.16.3 → 5.25.1
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/History.rdoc +176 -1
- data/Manifest.txt +3 -0
- data/README.rdoc +26 -25
- data/Rakefile +7 -0
- data/lib/hoe/minitest.rb +2 -1
- data/lib/minitest/assertions.rb +126 -79
- data/lib/minitest/autorun.rb +0 -7
- data/lib/minitest/benchmark.rb +6 -9
- data/lib/minitest/compress.rb +94 -0
- data/lib/minitest/error_on_warning.rb +11 -0
- data/lib/minitest/expectations.rb +18 -0
- data/lib/minitest/manual_plugins.rb +16 -0
- data/lib/minitest/mock.rb +23 -17
- data/lib/minitest/parallel.rb +5 -5
- data/lib/minitest/pride_plugin.rb +16 -23
- data/lib/minitest/spec.rb +10 -4
- data/lib/minitest/test.rb +22 -37
- data/lib/minitest/test_task.rb +24 -22
- data/lib/minitest.rb +296 -148
- data/test/minitest/metametameta.rb +32 -18
- data/test/minitest/test_minitest_assertions.rb +269 -140
- data/test/minitest/test_minitest_benchmark.rb +1 -1
- data/test/minitest/test_minitest_mock.rb +89 -77
- data/test/minitest/test_minitest_reporter.rb +139 -15
- data/test/minitest/test_minitest_spec.rb +130 -55
- data/test/minitest/test_minitest_test.rb +200 -116
- data/test/minitest/test_minitest_test_task.rb +18 -7
- data.tar.gz.sig +0 -0
- metadata +20 -16
- metadata.gz.sig +0 -0
@@ -1,5 +1,11 @@
|
|
1
1
|
require "minitest/autorun"
|
2
|
-
|
2
|
+
|
3
|
+
begin
|
4
|
+
require "hoe"
|
5
|
+
rescue LoadError => e
|
6
|
+
warn e.message
|
7
|
+
return
|
8
|
+
end
|
3
9
|
|
4
10
|
require "minitest/test_task"
|
5
11
|
|
@@ -8,11 +14,16 @@ Hoe.load_plugins # make sure Hoe::Test is loaded
|
|
8
14
|
class TestHoeTest < Minitest::Test
|
9
15
|
PATH = "test/minitest/test_minitest_test_task.rb"
|
10
16
|
|
11
|
-
|
17
|
+
def util_cmd_string *prelude_framework
|
18
|
+
mt_path = %w[lib test .].join File::PATH_SEPARATOR
|
19
|
+
mt_expected = "-I%s -w -e '%srequire %p' -- "
|
12
20
|
|
13
|
-
|
14
|
-
|
15
|
-
|
21
|
+
mt_expected % [mt_path, prelude_framework.join("; "), PATH]
|
22
|
+
end
|
23
|
+
|
24
|
+
def util_exp_cmd
|
25
|
+
@tester.make_test_cmd.sub(/ -- .+/, " -- ")
|
26
|
+
end
|
16
27
|
|
17
28
|
def test_make_test_cmd_for_minitest
|
18
29
|
skip "Using TESTOPTS... skipping" if ENV["TESTOPTS"]
|
@@ -25,7 +36,7 @@ class TestHoeTest < Minitest::Test
|
|
25
36
|
t.test_globs = [PATH]
|
26
37
|
end
|
27
38
|
|
28
|
-
assert_equal
|
39
|
+
assert_equal util_cmd_string(framework), util_exp_cmd
|
29
40
|
end
|
30
41
|
|
31
42
|
def test_make_test_cmd_for_minitest_prelude
|
@@ -41,6 +52,6 @@ class TestHoeTest < Minitest::Test
|
|
41
52
|
t.test_globs = [PATH]
|
42
53
|
end
|
43
54
|
|
44
|
-
assert_equal
|
55
|
+
assert_equal util_cmd_string(prelude, framework), util_exp_cmd
|
45
56
|
end
|
46
57
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.25.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
15
|
+
GRYDY29tMB4XDTI0MDEwMjIxMjEyM1oXDTI1MDEwMTIxMjEyM1owRTETMBEGA1UE
|
16
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -22,14 +22,14 @@ cert_chain:
|
|
22
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
23
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
24
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
AQCygvpmncmkiSs9r/Kceo4bBPDszhTv6iBi4LwMReqnFrpNLMOWJw7xi8x+3eL2
|
26
|
+
XS09ZPNOt2zm70KmFouBMgOysnDY4k2dE8uF6B8JbZOO8QfalW+CoNBliefOTcn2
|
27
|
+
bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
|
28
|
+
B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
|
29
|
+
S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
|
30
|
+
deKfBjgVAq7EYHu1AczzlUly
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2024-08-16 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rdoc
|
@@ -57,14 +57,14 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '4.2'
|
61
61
|
type: :development
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '4.2'
|
68
68
|
description: |-
|
69
69
|
minitest provides a complete suite of testing facilities supporting
|
70
70
|
TDD, BDD, mocking, and benchmarking.
|
@@ -139,8 +139,11 @@ files:
|
|
139
139
|
- lib/minitest/assertions.rb
|
140
140
|
- lib/minitest/autorun.rb
|
141
141
|
- lib/minitest/benchmark.rb
|
142
|
+
- lib/minitest/compress.rb
|
143
|
+
- lib/minitest/error_on_warning.rb
|
142
144
|
- lib/minitest/expectations.rb
|
143
145
|
- lib/minitest/hell.rb
|
146
|
+
- lib/minitest/manual_plugins.rb
|
144
147
|
- lib/minitest/mock.rb
|
145
148
|
- lib/minitest/parallel.rb
|
146
149
|
- lib/minitest/pride.rb
|
@@ -157,12 +160,13 @@ files:
|
|
157
160
|
- test/minitest/test_minitest_spec.rb
|
158
161
|
- test/minitest/test_minitest_test.rb
|
159
162
|
- test/minitest/test_minitest_test_task.rb
|
160
|
-
homepage: https://github.com/
|
163
|
+
homepage: https://github.com/minitest/minitest
|
161
164
|
licenses:
|
162
165
|
- MIT
|
163
166
|
metadata:
|
164
|
-
homepage_uri: https://github.com/
|
165
|
-
bug_tracker_uri: https://github.com/
|
167
|
+
homepage_uri: https://github.com/minitest/minitest
|
168
|
+
bug_tracker_uri: https://github.com/minitest/minitest/issues
|
169
|
+
changelog_uri: https://github.com/minitest/minitest/blob/master/History.rdoc
|
166
170
|
post_install_message:
|
167
171
|
rdoc_options:
|
168
172
|
- "--main"
|
@@ -183,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
187
|
- !ruby/object:Gem::Version
|
184
188
|
version: '0'
|
185
189
|
requirements: []
|
186
|
-
rubygems_version: 3.
|
190
|
+
rubygems_version: 3.5.15
|
187
191
|
signing_key:
|
188
192
|
specification_version: 4
|
189
193
|
summary: minitest provides a complete suite of testing facilities supporting TDD,
|
metadata.gz.sig
CHANGED
Binary file
|