formula: fix missing test resources.

Revert one change from https://github.com/Homebrew/brew/pull/17165.

It's unclear to me why this fixes the problem, but it does.

Fixes https://github.com/Homebrew/brew/issues/17203
This commit is contained in:
Mike McQuaid 2024-05-03 08:29:10 +01:00
parent 777135a401
commit 9da18b634c
No known key found for this signature in database

View File

@ -553,9 +553,7 @@ class Formula
# ```ruby
# resource("additional_files").stage { bin.install "my/extra/tool" }
# ```
def resource(name)
active_spec.resource(name)
end
delegate resource: :active_spec
# An old name for the formula.
sig { returns(T.nilable(String)) }