minitest-hooks 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/README.rdoc +1 -1
- data/lib/minitest/hooks/test.rb +5 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42d29c259746baab330e08c17b2a7a12f2ba1ba3fb0ebda481a38782f07b79b9
|
4
|
+
data.tar.gz: 6286a96601a5d734d3db8cee4f17085b61ac68d658d3b934ef0ecf37bf24c95d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4f25ff0d5c4cafbf135e479ae4755f8afc2b679b09738bc0f6a6103718b50136553b599a1c4d6e22158866834cb3665b6e426f5be7fe2531565ab8d0b30165
|
7
|
+
data.tar.gz: 8c80de38937b2987d0aaa4b78923d6059b230551c1264c4427424050384afccf68e9b3b24e4344dcc72c8f5b29b495b97a4a19c3051e447b7322d4f72eae7618
|
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
@@ -61,11 +61,13 @@ module Minitest::Hooks::ClassMethods
|
|
61
61
|
# When running the specs in the class, first create a singleton instance, the singleton is
|
62
62
|
# used to implement around_all/before_all/after_all hooks, and each spec will run as a
|
63
63
|
# dup of the singleton instance.
|
64
|
-
def with_info_handler(
|
64
|
+
def with_info_handler(*args, &block)
|
65
65
|
@instance = new(NEW)
|
66
66
|
@instance.time = 0
|
67
67
|
@instance.name = "around_all"
|
68
|
-
|
68
|
+
|
69
|
+
reporter = args[0]
|
70
|
+
|
69
71
|
begin
|
70
72
|
@instance.around_all do
|
71
73
|
begin
|
@@ -78,7 +80,7 @@ module Minitest::Hooks::ClassMethods
|
|
78
80
|
failed = true
|
79
81
|
_record_minitest_hooks_error(reporter, @instance)
|
80
82
|
else
|
81
|
-
super
|
83
|
+
super
|
82
84
|
end
|
83
85
|
ensure
|
84
86
|
@instance.capture_exceptions do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
128
|
+
rubygems_version: 3.5.11
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Around and before_all/after_all/around_all hooks for Minitest
|