mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Overriding #initialize is not supported, so drop late validation
This commit is contained in:
parent
dbfbe76ac1
commit
1bdeeefb94
@ -370,8 +370,6 @@ class Formula
|
||||
# yields self with current working directory set to the uncompressed tarball
|
||||
# @private
|
||||
def brew
|
||||
validate_attributes :name, :version
|
||||
|
||||
stage do
|
||||
begin
|
||||
patch
|
||||
|
@ -46,14 +46,6 @@ class FormulaValidationTests < Homebrew::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_validates_when_initialize_overridden
|
||||
assert_invalid :name do
|
||||
formula do
|
||||
def initialize(*); end
|
||||
end.brew {}
|
||||
end
|
||||
end
|
||||
|
||||
def test_devel_only_valid
|
||||
f = formula do
|
||||
devel do
|
||||
|
Loading…
x
Reference in New Issue
Block a user