Skip to content

Commit 10e18c6

Browse files
author
Andy Waite
authored
Merge pull request Shopify#300 from Shopify/andyw8/add-annotation-for-minitest-afer
Add annotation for `after` for Minitest::HooksSpec
2 parents 7dcee95 + 85a61aa commit 10e18c6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

index.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@
7979
"lhm": {},
8080
"lhm-shopify": {},
8181
"minitest": {},
82+
"minitest-hooks": {
83+
"dependencies": [
84+
"minitest"
85+
],
86+
"requires": [
87+
"minitest/hooks"
88+
]
89+
},
8290
"mocha": {
8391
"requires": [
8492
"mocha/api"

rbi/annotations/minitest-hooks.rbi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# typed: true
2+
3+
class Minitest::HooksSpec
4+
sig { params(type: T.nilable(Symbol), block: T.proc.bind(T.attached_class).void).void }
5+
def self.before(type = nil, &block); end
6+
7+
sig { params(type: T.nilable(Symbol), block: T.proc.bind(T.attached_class).void).void }
8+
def self.after(type = nil, &block); end
9+
end

0 commit comments

Comments
 (0)