Skip to content

Commit

Permalink
Add annotation for after for Minitest::Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Jan 8, 2025
1 parent 12762cc commit eb10792
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rbi/annotations/minitest.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,8 @@ module Minitest::Assertions
sig { params(exp: T.anything, act: T.anything, msg: T.anything).returns(TrueClass) }
def refute_same(exp, act, msg = nil); end
end

class Minitest::HooksSpec
sig { params(arg: Symbol, block: T.proc.bind(T.attached_class).void).void }
def self.after(arg, &block); end
end

0 comments on commit eb10792

Please sign in to comment.