-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add annotation for before
and after
for Minitest::HooksSpec
#300
Conversation
56e2869
to
eb10792
Compare
after
for Minitest::Specafter
for Minitest::HooksSpec
ccc7e10
to
dcd6d74
Compare
dcd6d74
to
9ed8dcd
Compare
class Minitest::HooksSpec | ||
sig { params(arg: Symbol, block: T.proc.bind(T.attached_class).void).void } | ||
def self.after(arg, &block); end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you link the source in PR description, is it https://github.com/jeremyevans/minitest-hooks/blob/332e0bc69c811ae8dbc4c1c9d7c744da786585d6/lib/minitest/hooks/test.rb#L125-L135?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this originally came from a comment by Vini, but I've updated it to better match the implementation.
9ed8dcd
to
829e101
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're already going through adding this, can we add before
too?
829e101
to
85a61aa
Compare
Added |
after
for Minitest::HooksSpecbefore
and after
for Minitest::HooksSpec
Type of Change
(this is from the minitest-hooks gem, not minitest itself)
https://github.com/jeremyevans/minitest-hooks/blob/332e0bc69c811ae8dbc4c1c9d7c744da786585d6/lib/minitest/hooks/test.rb#L125-L135