Skip to content
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

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Jan 7, 2025

Type of Change

  • Add RBI for a new gem
  • Modify RBI for an existing gem
  • Other:

(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

@andyw8 andyw8 force-pushed the andyw8/add-annotation-for-minitest-afer branch 3 times, most recently from 56e2869 to eb10792 Compare January 8, 2025 18:13
@andyw8 andyw8 changed the title Add annotation for after for Minitest::Spec Add annotation for after for Minitest::HooksSpec Jan 8, 2025
@andyw8 andyw8 force-pushed the andyw8/add-annotation-for-minitest-afer branch 7 times, most recently from ccc7e10 to dcd6d74 Compare January 8, 2025 19:39
@andyw8 andyw8 force-pushed the andyw8/add-annotation-for-minitest-afer branch from dcd6d74 to 9ed8dcd Compare February 3, 2025 19:00
@andyw8 andyw8 marked this pull request as ready for review February 3, 2025 19:04
@andyw8 andyw8 requested a review from a team as a code owner February 3, 2025 19:04
class Minitest::HooksSpec
sig { params(arg: Symbol, block: T.proc.bind(T.attached_class).void).void }
def self.after(arg, &block); end
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

@andyw8 andyw8 force-pushed the andyw8/add-annotation-for-minitest-afer branch from 9ed8dcd to 829e101 Compare February 3, 2025 19:33
Copy link
Member

@vinistock vinistock left a 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?

@andyw8 andyw8 force-pushed the andyw8/add-annotation-for-minitest-afer branch from 829e101 to 85a61aa Compare February 3, 2025 19:53
@andyw8
Copy link
Contributor Author

andyw8 commented Feb 3, 2025

Added before.

@andyw8 andyw8 merged commit 10e18c6 into main Feb 3, 2025
4 checks passed
@andyw8 andyw8 deleted the andyw8/add-annotation-for-minitest-afer branch February 3, 2025 19:57
@andyw8 andyw8 changed the title Add annotation for after for Minitest::HooksSpec Add annotation for before and after for Minitest::HooksSpec Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants