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
|
# yields self with current working directory set to the uncompressed tarball
|
||||||
# @private
|
# @private
|
||||||
def brew
|
def brew
|
||||||
validate_attributes :name, :version
|
|
||||||
|
|
||||||
stage do
|
stage do
|
||||||
begin
|
begin
|
||||||
patch
|
patch
|
||||||
|
@ -46,14 +46,6 @@ class FormulaValidationTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
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
|
def test_devel_only_valid
|
||||||
f = formula do
|
f = formula do
|
||||||
devel do
|
devel do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user