minitest-hooks 1.5.1 → 1.5.3
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/CHANGELOG +8 -0
- data/README.rdoc +1 -1
- data/lib/minitest/hooks/test.rb +14 -3
- metadata +10 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 373843f53e329c5f7d3678b58f46179d4206620dbf71060b53c844fcc286d9ae
|
|
4
|
+
data.tar.gz: f122d6fc10bde3c4bed3b7712c46214d6a24a5d69bebc508fc86962bb3006cdd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd8e13d13357dad8b7908c92e5e8e4abf2eb878afee9759ebdd0cd49a48ebc1b023fc84a55d7caca03a8dd9670ee5ebfaef9e98c2b79c4925e701ea08ef82701
|
|
7
|
+
data.tar.gz: 4eccd8d59563adb207675a9d35c56ff13abfa5882e5b037372b2b6d2b8c595610cfa96bb29a5540c46a9c339301b8f71d5fabdb8ffa2e324d8f934d259e632e7
|
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
|
@@ -184,7 +184,7 @@ context of an instance of the subclass, before executing the subclass's specs.
|
|
|
184
184
|
== Order of Operations
|
|
185
185
|
|
|
186
186
|
For each spec class, the around(:all) hooks are run first. Both before(:all) and after(:all)
|
|
187
|
-
run inside around(:all). For each spec inside the spec
|
|
187
|
+
run inside around(:all). For each spec inside the spec class, around will be called,
|
|
188
188
|
and before and after for each spec will be run inside around.
|
|
189
189
|
|
|
190
190
|
= License
|
data/lib/minitest/hooks/test.rb
CHANGED
|
@@ -58,14 +58,25 @@ module Minitest::Hooks::ClassMethods
|
|
|
58
58
|
instance
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
# :nocov:
|
|
62
|
+
if Minitest::VERSION >= '6'
|
|
63
|
+
# :nocov:
|
|
64
|
+
def run_suite(reporter, options = {})
|
|
65
|
+
@_minitest_hooks_reporter = reporter
|
|
66
|
+
super
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
61
70
|
# When running the specs in the class, first create a singleton instance, the singleton is
|
|
62
71
|
# used to implement around_all/before_all/after_all hooks, and each spec will run as a
|
|
63
72
|
# dup of the singleton instance.
|
|
64
|
-
def with_info_handler(
|
|
73
|
+
def with_info_handler(*args, &block)
|
|
65
74
|
@instance = new(NEW)
|
|
66
75
|
@instance.time = 0
|
|
67
76
|
@instance.name = "around_all"
|
|
68
|
-
|
|
77
|
+
|
|
78
|
+
reporter = args[0] || @_minitest_hooks_reporter # Minitest 6+
|
|
79
|
+
|
|
69
80
|
begin
|
|
70
81
|
@instance.around_all do
|
|
71
82
|
begin
|
|
@@ -78,7 +89,7 @@ module Minitest::Hooks::ClassMethods
|
|
|
78
89
|
failed = true
|
|
79
90
|
_record_minitest_hooks_error(reporter, @instance)
|
|
80
91
|
else
|
|
81
|
-
super
|
|
92
|
+
super
|
|
82
93
|
end
|
|
83
94
|
ensure
|
|
84
95
|
@instance.capture_exceptions do
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitest-hooks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Evans
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: minitest
|
|
@@ -89,9 +88,9 @@ email: code@jeremyevans.net
|
|
|
89
88
|
executables: []
|
|
90
89
|
extensions: []
|
|
91
90
|
extra_rdoc_files:
|
|
92
|
-
- README.rdoc
|
|
93
91
|
- CHANGELOG
|
|
94
92
|
- MIT-LICENSE
|
|
93
|
+
- README.rdoc
|
|
95
94
|
files:
|
|
96
95
|
- CHANGELOG
|
|
97
96
|
- MIT-LICENSE
|
|
@@ -102,8 +101,11 @@ files:
|
|
|
102
101
|
homepage: http://github.com/jeremyevans/minitest-hooks
|
|
103
102
|
licenses:
|
|
104
103
|
- MIT
|
|
105
|
-
metadata:
|
|
106
|
-
|
|
104
|
+
metadata:
|
|
105
|
+
bug_tracker_uri: https://github.com/jeremyevans/minitest-hooks/issues
|
|
106
|
+
changelog_uri: https://github.com/jeremyevans/minitest-hooks/blob/master/CHANGELOG
|
|
107
|
+
mailing_list_uri: https://github.com/jeremyevans/minitest-hooks/discussions
|
|
108
|
+
source_code_uri: https://github.com/jeremyevans/minitest-hooks
|
|
107
109
|
rdoc_options:
|
|
108
110
|
- "--quiet"
|
|
109
111
|
- "--line-numbers"
|
|
@@ -118,15 +120,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
118
120
|
requirements:
|
|
119
121
|
- - ">="
|
|
120
122
|
- !ruby/object:Gem::Version
|
|
121
|
-
version: '
|
|
123
|
+
version: '1.8'
|
|
122
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
125
|
requirements:
|
|
124
126
|
- - ">="
|
|
125
127
|
- !ruby/object:Gem::Version
|
|
126
128
|
version: '0'
|
|
127
129
|
requirements: []
|
|
128
|
-
rubygems_version: 3.
|
|
129
|
-
signing_key:
|
|
130
|
+
rubygems_version: 3.6.9
|
|
130
131
|
specification_version: 4
|
|
131
132
|
summary: Around and before_all/after_all/around_all hooks for Minitest
|
|
132
133
|
test_files: []
|